mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
[Test] Assumeutxo: ensure failure when importing a snapshot twice
This commit is contained in:
parent
7973a67091
commit
b259b0e8d3
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue