34 return leaf.get_key();
42template <
typename LeafType>
bool is_empty(
const LeafType& leaf)
44 return leaf.is_empty();
87 const DBStats& leafIndicesStats,
88 const DBStats& blockIndicesStats)
120 if (
this != &other) {
144std::ostream&
operator<<(std::ostream& os,
const TreeDBStats& stats);
const std::string LEAF_PREIMAGES_DB
const std::string NODES_DB
fr preimage_to_key(const LeafType &leaf)
uint64_t BlockMetaKeyType
bool is_empty(const LeafType &leaf)
const std::string BLOCK_INDICES_DB
constexpr bool requires_preimage_for_key()
uint64_t LeafIndexKeyType
const std::string BLOCKS_DB
constexpr bool requires_preimage_for_key< fr >()
std::ostream & operator<<(std::ostream &os, const BlockPayload &block)
const std::string LEAF_INDICES_DB
bool operator==(ecdsa_signature const &lhs, ecdsa_signature const &rhs)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
std::optional< index_t > maxIndex
std::optional< block_number_t > blockNumber
uint64_t physicalFileSize
TreeDBStats(uint64_t mapSize, uint64_t physicalFileSize)
MSGPACK_FIELDS(mapSize, physicalFileSize, blocksDBStats, nodesDBStats, leafPreimagesDBStats, leafIndicesDBStats, blockIndicesDBStats) bool operator
DBStats blockIndicesDBStats
TreeDBStats(uint64_t mapSize, uint64_t physicalFileSize, const DBStats &blockStats, const DBStats &nodesStats, const DBStats &leafPreimagesDBStats, const DBStats &leafIndicesStats, const DBStats &blockIndicesStats)
TreeDBStats(const TreeDBStats &other)=default
TreeDBStats(TreeDBStats &&other) noexcept
DBStats leafIndicesDBStats
friend std::ostream & operator<<(std::ostream &os, const TreeDBStats &stats)
DBStats leafPreimagesDBStats
static constexpr field zero()