| 74 | }; |
| 75 | |
| 76 | struct 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 |
no outgoing calls
no test coverage detected