MCPcopy Create free account
hub / github.com/ElementsProject/elements / DBHashKey

Class DBHashKey

src/index/coinstatsindex.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83struct DBHashKey {
84 uint256 block_hash;
85
86 explicit DBHashKey(const uint256& hash_in) : block_hash(hash_in) {}
87
88 SERIALIZE_METHODS(DBHashKey, obj)
89 {
90 uint8_t prefix{DB_BLOCK_HASH};
91 READWRITE(prefix);
92 if (prefix != DB_BLOCK_HASH) {
93 throw std::ios_base::failure("Invalid format for coinstatsindex DB hash key");
94 }
95
96 READWRITE(obj.block_hash);
97 }
98};
99
100}; // namespace
101

Callers 4

WriteBlockMethod · 0.70
LookUpOneFunction · 0.70
ReverseBlockMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected