mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
refactor: Add missing {} around error() calls
This is required for the next commit to be correct.
This commit is contained in:
@@ -159,7 +159,9 @@ bool BlockFilterIndex::ReadFilterFromDisk(const FlatFilePos& pos, const uint256&
|
||||
std::vector<uint8_t> encoded_filter;
|
||||
try {
|
||||
filein >> block_hash >> encoded_filter;
|
||||
if (Hash(encoded_filter) != hash) return error("Checksum mismatch in filter decode.");
|
||||
if (Hash(encoded_filter) != hash) {
|
||||
return error("Checksum mismatch in filter decode.");
|
||||
}
|
||||
filter = BlockFilter(GetFilterType(), block_hash, std::move(encoded_filter), /*skip_decode_check=*/true);
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user