diff options
author | Alfonso Roman Zubeldia <alfonsoromanz24@gmail.com> | 2024-04-26 10:50:00 -0300 |
---|---|---|
committer | Alfonso Roman Zubeldia <alfonsoromanz24@gmail.com> | 2024-04-26 10:50:00 -0300 |
commit | b259b0e8d360726b062c4b0453d1cf5a68e1933f (patch) | |
tree | 453dfdcbb8c6558cf3b8878c230779204072a06f /test | |
parent | 7973a670915632b75a6aa16f24f98b936865c48f (diff) | |
download | bitcoin-b259b0e8d360726b062c4b0453d1cf5a68e1933f.tar.xz |
[Test] Assumeutxo: ensure failure when importing a snapshot twice
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_assumeutxo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py index 19cbbcffdb..ffbbfc8949 100755 --- a/test/functional/feature_assumeutxo.py +++ b/test/functional/feature_assumeutxo.py @@ -395,6 +395,10 @@ class AssumeutxoTest(BitcoinTestFramework): assert_equal(snapshot['snapshot_blockhash'], dump_output['base_hash']) assert_equal(snapshot['validated'], False) + self.log.info("Check that loading the snapshot again will fail because there is already an active snapshot.") + with n2.assert_debug_log(expected_msgs=["[snapshot] can't activate a snapshot-based chainstate more than once"]): + assert_raises_rpc_error(-32603, "Unable to load UTXO snapshot", n2.loadtxoutset, dump_output['path']) + self.connect_nodes(0, 2) self.wait_until(lambda: n2.getchainstates()['chainstates'][-1]['blocks'] == FINAL_HEIGHT) self.sync_blocks() |