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

Class DBHashKey

src/index/blockfilterindex.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76struct DBHashKey {
77 uint256 hash;
78
79 explicit DBHashKey(const uint256& hash_in) : hash(hash_in) {}
80
81 SERIALIZE_METHODS(DBHashKey, obj) {
82 uint8_t prefix{DB_BLOCK_HASH};
83 READWRITE(prefix);
84 if (prefix != DB_BLOCK_HASH) {
85 throw std::ios_base::failure("Invalid format for block filter index DB hash key");
86 }
87
88 READWRITE(obj.hash);
89 }
90};
91
92}; // namespace
93

Callers 3

LookupOneFunction · 0.70
LookupRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected