mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: perform forkchoice update consistency checks (#3730)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -217,6 +217,9 @@ pub trait BlockchainTreeViewer: Send + Sync {
|
||||
/// Note: this could be the given `parent_hash` if it's already canonical.
|
||||
fn find_canonical_ancestor(&self, parent_hash: BlockHash) -> Option<BlockHash>;
|
||||
|
||||
/// Return whether or not the block is known and in the canonical chain.
|
||||
fn is_canonical(&self, hash: BlockHash) -> Result<bool, Error>;
|
||||
|
||||
/// Given the hash of a block, this checks the buffered blocks for the lowest ancestor in the
|
||||
/// buffer.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user