diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-03 15:30:04 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-04 07:38:02 +0200 |
commit | fa9b74f5ea89624e052934c48391b5076a87ffef (patch) | |
tree | 75a78b8535b82129fd3105b6c3c50f06ea3db14b /src/test | |
parent | fa8fffebe8ac126f31143619843dd6578a2f4e3c (diff) |
Fix assumeutxo crash due to missing base_blockhash
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/validation_chainstatemanager_tests.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/validation_chainstatemanager_tests.cpp b/src/test/validation_chainstatemanager_tests.cpp index 94d4277019..35e087c899 100644 --- a/src/test/validation_chainstatemanager_tests.cpp +++ b/src/test/validation_chainstatemanager_tests.cpp @@ -259,6 +259,11 @@ BOOST_FIXTURE_TEST_CASE(chainstatemanager_activate_snapshot, TestChain100Determi // Coins count is smaller than coins in file metadata.m_coins_count -= 1; })); + BOOST_REQUIRE(!CreateAndActivateUTXOSnapshot( + m_node, m_path_root, [](CAutoFile& auto_infile, SnapshotMetadata& metadata) { + // Wrong hash + metadata.m_base_blockhash = uint256::ONE; + })); BOOST_REQUIRE(CreateAndActivateUTXOSnapshot(m_node, m_path_root)); |