6 #ifndef KAGOME_CORE_BLOCKCHAIN_BLOCK_HEADER_REPOSITORY_HPP 7 #define KAGOME_CORE_BLOCKCHAIN_BLOCK_HEADER_REPOSITORY_HPP 38 virtual outcome::result<primitives::BlockNumber> getNumberByHash(
46 virtual outcome::result<common::Hash256> getHashByNumber(
52 virtual outcome::result<primitives::BlockHeader> getBlockHeader(
59 virtual outcome::result<kagome::blockchain::BlockStatus> getBlockStatus(
69 return visit_in_place(
73 return getNumberByHash(hash);
84 return visit_in_place(
87 return getHashByNumber(n);
95 #endif // KAGOME_CORE_BLOCKCHAIN_BLOCK_HEADER_REPOSITORY_HPP
boost::variant< BlockHash, BlockNumber > BlockId
Block id is the variant over BlockHash and BlockNumber.