Changeset View
Changeset View
Standalone View
Standalone View
chronik/chronik-cpp/chronik_bridge.h
| Show All 25 Lines | |||||
| class uint256; | class uint256; | ||||
| namespace chronik_bridge { | namespace chronik_bridge { | ||||
| struct BlockInfo; | struct BlockInfo; | ||||
| struct Block; | struct Block; | ||||
| struct Tx; | struct Tx; | ||||
| struct OutPoint; | struct OutPoint; | ||||
| struct RawBlockHash; | |||||
| struct RawBlockHeader; | struct RawBlockHeader; | ||||
| class block_index_not_found : public std::exception { | class block_index_not_found : public std::exception { | ||||
| public: | public: | ||||
| const char *what() const noexcept override { | const char *what() const noexcept override { | ||||
| return "CBlockIndex not found"; | return "CBlockIndex not found"; | ||||
| } | } | ||||
| }; | }; | ||||
| Show All 24 Lines | public: | ||||
| const CBlockIndex &get_chain_tip() const; | const CBlockIndex &get_chain_tip() const; | ||||
| const CBlockIndex &lookup_block_index(std::array<uint8_t, 32> hash) const; | const CBlockIndex &lookup_block_index(std::array<uint8_t, 32> hash) const; | ||||
| const CBlockIndex &lookup_block_index_by_height(int height) const; | const CBlockIndex &lookup_block_index_by_height(int height) const; | ||||
| rust::Vec<RawBlockHeader> get_block_headers_by_range(int start, | rust::Vec<RawBlockHeader> get_block_headers_by_range(int start, | ||||
| int end) const; | int end) const; | ||||
| rust::Vec<RawBlockHash> get_block_hashes_by_range(int start, int end) const; | |||||
| std::unique_ptr<CBlock> load_block(const CBlockIndex &bindex) const; | std::unique_ptr<CBlock> load_block(const CBlockIndex &bindex) const; | ||||
| std::unique_ptr<CBlockUndo> | std::unique_ptr<CBlockUndo> | ||||
| load_block_undo(const CBlockIndex &bindex) const; | load_block_undo(const CBlockIndex &bindex) const; | ||||
| Tx load_tx(uint32_t file_num, uint32_t data_pos, uint32_t undo_pos) const; | Tx load_tx(uint32_t file_num, uint32_t data_pos, uint32_t undo_pos) const; | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||