diff options
author | mruddy <6440430+mruddy@users.noreply.github.com> | 2022-04-14 18:44:34 -0400 |
---|---|---|
committer | mruddy <6440430+mruddy@users.noreply.github.com> | 2022-05-07 07:11:29 -0400 |
commit | bcb0cacac28e98a39dc856c574a0872fe17059e9 (patch) | |
tree | fe1cc8fb1af65d3a1e2ae1a4ff79139af15f734c /src/Makefile.test.include | |
parent | 59ac8bacd573891d84e8ab96ff43ea12bd266f26 (diff) | |
download | bitcoin-bcb0cacac28e98a39dc856c574a0872fe17059e9.tar.xz |
reindex, log, test: fixes #21379
This fixes a blk file size calculation made during reindex that results in increased blk file malformity.
The fix is to avoid double counting the size of the serialization header during reindex.
This adds a unit test to reproduce the bug before the fix and to ensure that it does not recur.
These changes include a log message change also so as to not be as alarming. This is a common and recoverable
data corruption. These messages can now be filtered by the debug log reindex category.
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r-- | src/Makefile.test.include | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 02a3f9ae7d..09148f9d36 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -77,6 +77,7 @@ BITCOIN_TESTS =\ test/blockencodings_tests.cpp \ test/blockfilter_index_tests.cpp \ test/blockfilter_tests.cpp \ + test/blockmanager_tests.cpp \ test/bloom_tests.cpp \ test/bswap_tests.cpp \ test/checkqueue_tests.cpp \ |