Speed up bigtable transaction-history
command
This commit is contained in:
committed by
mergify[bot]
parent
1db5c9d346
commit
10ce839ec0
@@ -367,7 +367,12 @@ impl LedgerStorage {
|
||||
before_signature: Option<&Signature>,
|
||||
until_signature: Option<&Signature>,
|
||||
limit: usize,
|
||||
) -> Result<Vec<(ConfirmedTransactionStatusWithSignature, u32 /*slot index*/)>> {
|
||||
) -> Result<
|
||||
Vec<(
|
||||
ConfirmedTransactionStatusWithSignature,
|
||||
u32, /*slot index*/
|
||||
)>,
|
||||
> {
|
||||
let mut bigtable = self.connection.client();
|
||||
let address_prefix = format!("{}/", address);
|
||||
|
||||
@@ -436,12 +441,15 @@ impl LedgerStorage {
|
||||
if slot == last_slot && tx_by_addr_info.index <= until_transaction_index {
|
||||
continue;
|
||||
}
|
||||
infos.push((ConfirmedTransactionStatusWithSignature {
|
||||
signature: tx_by_addr_info.signature,
|
||||
slot,
|
||||
err: tx_by_addr_info.err,
|
||||
memo: tx_by_addr_info.memo,
|
||||
}, tx_by_addr_info.index));
|
||||
infos.push((
|
||||
ConfirmedTransactionStatusWithSignature {
|
||||
signature: tx_by_addr_info.signature,
|
||||
slot,
|
||||
err: tx_by_addr_info.err,
|
||||
memo: tx_by_addr_info.memo,
|
||||
},
|
||||
tx_by_addr_info.index,
|
||||
));
|
||||
// Respect limit
|
||||
if infos.len() >= limit {
|
||||
break 'outer;
|
||||
|
Reference in New Issue
Block a user