forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant bounds check from getBlock and getBlockTime (solana…
…-labs#33901) JsonRpcRequestProcessor::check_blockstore_root() contained some logic that performed duplicate sanity checking on a Blockstore fetch result. The checking involved creating rocksdb iterators, which has non-trivial overhead. This PR removes the duplicate checking, and also adds comments to help reason about how JsonRpcRequestProcessor interprets the Blockstore result.
- Loading branch information
steviez
authored
Nov 8, 2023
1 parent
73815ae
commit 03a456e
Showing
2 changed files
with
27 additions
and
47 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
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