Add blockstore address-to-signature index (#9367) (#9379)

automerge
This commit is contained in:
mergify[bot]
2020-04-08 14:05:54 -07:00
committed by GitHub
parent ec8d1c5e2b
commit 34893d2449
4 changed files with 253 additions and 38 deletions

View File

@@ -70,9 +70,14 @@ impl TransactionStatusService {
}
.expect("FeeCalculator must exist");
let fee = fee_calculator.calculate_fee(transaction.message());
let (writable_keys, readonly_keys) =
transaction.message.get_account_keys_by_lock_type();
blockstore
.write_transaction_status(
(transaction.signatures[0], slot),
slot,
transaction.signatures[0],
writable_keys,
readonly_keys,
&TransactionStatusMeta {
status,
fee,