| 81 | }; |
| 82 | |
| 83 | struct 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 |
no outgoing calls
no test coverage detected