Update get-block method in get_confirmed_transaction (#12923)
* Update get-block method in get_confirmed_transaction * Remove superfluous into()
This commit is contained in:
parent
4f6ebbdbe0
commit
42943ab86d
|
@ -342,9 +342,7 @@ impl LedgerStorage {
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// Load the block and return the transaction
|
// Load the block and return the transaction
|
||||||
let block = bigtable
|
let block = self.get_confirmed_block(slot).await?;
|
||||||
.get_bincode_cell::<StoredConfirmedBlock>("blocks", slot_to_key(slot))
|
|
||||||
.await?;
|
|
||||||
match block.transactions.into_iter().nth(index as usize) {
|
match block.transactions.into_iter().nth(index as usize) {
|
||||||
None => {
|
None => {
|
||||||
warn!("Transaction info for {} is corrupt", signature);
|
warn!("Transaction info for {} is corrupt", signature);
|
||||||
|
@ -360,7 +358,7 @@ impl LedgerStorage {
|
||||||
} else {
|
} else {
|
||||||
Ok(Some(ConfirmedTransaction {
|
Ok(Some(ConfirmedTransaction {
|
||||||
slot,
|
slot,
|
||||||
transaction: bucket_block_transaction.into(),
|
transaction: bucket_block_transaction,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue