From 42943ab86dafea5c7219337a7fb6d942fb733c8e Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 15 Oct 2020 13:56:32 -0600 Subject: [PATCH] Update get-block method in get_confirmed_transaction (#12923) * Update get-block method in get_confirmed_transaction * Remove superfluous into() --- storage-bigtable/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/storage-bigtable/src/lib.rs b/storage-bigtable/src/lib.rs index 0290fa5bf..d80b1252c 100644 --- a/storage-bigtable/src/lib.rs +++ b/storage-bigtable/src/lib.rs @@ -342,9 +342,7 @@ impl LedgerStorage { .await?; // Load the block and return the transaction - let block = bigtable - .get_bincode_cell::("blocks", slot_to_key(slot)) - .await?; + let block = self.get_confirmed_block(slot).await?; match block.transactions.into_iter().nth(index as usize) { None => { warn!("Transaction info for {} is corrupt", signature); @@ -360,7 +358,7 @@ impl LedgerStorage { } else { Ok(Some(ConfirmedTransaction { slot, - transaction: bucket_block_transaction.into(), + transaction: bucket_block_transaction, })) } }