Kagome
Polkadot Runtime Engine in C++17
|
#include <chain.hpp>
Public Member Functions | |
virtual | ~Chain ()=default |
virtual outcome::result< bool > | hasBlock (const primitives::BlockHash &block) const =0 |
Checks if {. More... | |
virtual outcome::result< std::vector< primitives::BlockHash > > | getAncestry (const primitives::BlockHash &base, const primitives::BlockHash &block) const =0 |
Get the ancestry of a {. More... | |
virtual bool | hasAncestry (const primitives::BlockHash &base, const primitives::BlockHash &block) const =0 |
Check if block is ancestor for second one. More... | |
virtual outcome::result< BlockInfo > | bestChainContaining (const primitives::BlockHash &base, std::optional< VoterSetId > voter_set_id) const =0 |
bool | isEqualOrDescendOf (const primitives::BlockHash &base, const primitives::BlockHash &block) const |
Chain context necessary for implementation of the finality gadget.
|
virtualdefault |
|
pure virtual |
base} | itself. If base is unknown, return None. |
Implemented in kagome::consensus::grandpa::EnvironmentImpl.
|
pure virtual |
Get the ancestry of a {.
block} | up to the { |
base} | hash. Should be in reverse order from block's parent. |
Implemented in kagome::consensus::grandpa::EnvironmentImpl.
|
pure virtual |
Check if block is ancestor for second one.
base | is potential ancestor |
block | is testee block |
base | is ancestor for |
block |
Implemented in kagome::consensus::grandpa::EnvironmentImpl.
|
pure virtual |
Checks if {.
block} | exists locally |
Implemented in kagome::consensus::grandpa::EnvironmentImpl.
|
inline |