-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add is_canonical to block_info() RPC result
Adds is_canonical field to the BlockInfo struct which is returned by block_info() RPC. perf: This requires a new call to ArchivalState::block_belongs_to_canonical_chain() which may have to search the path from block-digest to tip-digest. So it potentially slows down block_info() RPC some. However, this enables the block-explorer the display the required info without a 2nd RPC call (per page request), so overall it should be a performance win.
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 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
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