Kagome
Polkadot Runtime Engine in C++17
|
#include <block_header_repository_impl.hpp>
Public Member Functions | |
BlockHeaderRepositoryImpl (std::shared_ptr< storage::BufferStorage > map, std::shared_ptr< crypto::Hasher > hasher) | |
~BlockHeaderRepositoryImpl () override=default | |
outcome::result< primitives::BlockNumber > | getNumberByHash (const common::Hash256 &hash) const override |
outcome::result< common::Hash256 > | getHashByNumber (const primitives::BlockNumber &number) const override |
outcome::result< primitives::BlockHeader > | getBlockHeader (const primitives::BlockId &id) const override |
outcome::result< blockchain::BlockStatus > | getBlockStatus (const primitives::BlockId &id) const override |
Public Member Functions inherited from kagome::blockchain::BlockHeaderRepository | |
virtual | ~BlockHeaderRepository ()=default |
outcome::result< primitives::BlockNumber > | getNumberById (const primitives::BlockId &id) const |
outcome::result< common::Hash256 > | getHashById (const primitives::BlockId &id) const |
Private Attributes | |
std::shared_ptr< storage::BufferStorage > | map_ |
std::shared_ptr< crypto::Hasher > | hasher_ |
Definition at line 16 of file block_header_repository_impl.hpp.
kagome::blockchain::BlockHeaderRepositoryImpl::BlockHeaderRepositoryImpl | ( | std::shared_ptr< storage::BufferStorage > | map, |
std::shared_ptr< crypto::Hasher > | hasher | ||
) |
Definition at line 24 of file block_header_repository_impl.cpp.
|
overridedefault |
|
overridevirtual |
Implements kagome::blockchain::BlockHeaderRepository.
Definition at line 48 of file block_header_repository_impl.cpp.
|
overridevirtual |
id | of a block which status is returned |
Implements kagome::blockchain::BlockHeaderRepository.
Definition at line 56 of file block_header_repository_impl.cpp.
|
overridevirtual |
number | - the number of a block, contained in a block header |
Implements kagome::blockchain::BlockHeaderRepository.
Definition at line 40 of file block_header_repository_impl.cpp.
|
overridevirtual |
hash | - a blake2_256 hash of an SCALE encoded block header |
Implements kagome::blockchain::BlockHeaderRepository.
Definition at line 31 of file block_header_repository_impl.cpp.
|
private |
Definition at line 37 of file block_header_repository_impl.hpp.
|
private |
Definition at line 36 of file block_header_repository_impl.hpp.