forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger-tool: Adjust logic to obtain TransactionStatusService Blocksto…
…re (solana-labs#34646) TransactionStatusService needs Primary access in order to write transaction status into the Blockstore if enable_rpc_transaction_history is set to True. The current logic attempts to get Primary access for the service. However, in the event that this function had been called with a Blockstore that already had Primary access, this second attempt to get Primary access would fail. So, only attempt to open with Primary access when necessary AND when the current access level is not sufficient.
- Loading branch information
Showing
1 changed file
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters