| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
#include <block_header_repository.hpp>
Public Member Functions | |
| virtual | ~BlockHeaderRepository ()=default | 
| virtual outcome::result< primitives::BlockNumber > | getNumberByHash (const common::Hash256 &hash) const =0 | 
| virtual outcome::result< common::Hash256 > | getHashByNumber (const primitives::BlockNumber &number) const =0 | 
| virtual outcome::result< primitives::BlockHeader > | getBlockHeader (const primitives::BlockId &id) const =0 | 
| virtual outcome::result< kagome::blockchain::BlockStatus > | getBlockStatus (const primitives::BlockId &id) const =0 | 
| outcome::result< primitives::BlockNumber > | getNumberById (const primitives::BlockId &id) const | 
| outcome::result< common::Hash256 > | getHashById (const primitives::BlockId &id) const | 
An interface to a storage with block headers that provides several convenience methods, such as getting bloch number by its hash and vice versa or getting a block status
Definition at line 29 of file block_header_repository.hpp.
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
Implemented in kagome::blockchain::BlockHeaderRepositoryImpl.
      
  | 
  pure virtual | 
| id | of a block which status is returned | 
Implemented in kagome::blockchain::BlockHeaderRepositoryImpl.
      
  | 
  inline | 
| id | of a block which hash is returned | 
Definition at line 82 of file block_header_repository.hpp.
      
  | 
  pure virtual | 
| number | - the number of a block, contained in a block header | 
Implemented in kagome::blockchain::BlockHeaderRepositoryImpl.
      
  | 
  pure virtual | 
| hash | - a blake2_256 hash of an SCALE encoded block header | 
Implemented in kagome::blockchain::BlockHeaderRepositoryImpl.
      
  | 
  inline | 
| id | of a block which number is returned | 
Definition at line 67 of file block_header_repository.hpp.