From 03ab8fac295295e182273c1014e97c63beebcc91 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2020 21:33:38 +0000 Subject: [PATCH] Update get-block method in get_confirmed_transaction (#12923) (#12929) * Update get-block method in get_confirmed_transaction * Remove superfluous into() (cherry picked from commit 42943ab86dafea5c7219337a7fb6d942fb733c8e) Co-authored-by: Tyera Eulberg --- 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 c7aef3de79..9e0a6b18ab 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, })) } }