diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-01-11 18:34:56 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-03-11 13:49:25 +0100 |
commit | fa9a5e80ab86c997102a1c3d4ba017bbe86641d5 (patch) | |
tree | 2ff82dc65e56b1b130a3c812b9230d4ffdc6d1df /src/index/blockfilterindex.cpp | |
parent | 4a903741b0bc128745b1096586329456d1f1c447 (diff) | |
download | bitcoin-fa9a5e80ab86c997102a1c3d4ba017bbe86641d5.tar.xz |
refactor: Add missing {} around error() calls
This is required for the next commit to be correct.
Diffstat (limited to 'src/index/blockfilterindex.cpp')
-rw-r--r-- | src/index/blockfilterindex.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index/blockfilterindex.cpp b/src/index/blockfilterindex.cpp index 58f777b326..226d9a178e 100644 --- a/src/index/blockfilterindex.cpp +++ b/src/index/blockfilterindex.cpp @@ -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) { |