Skip to content

Commit d92085e

Browse files
committed
test: check that 599 seconds is not enough
1 parent ddf36d5 commit d92085e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/functional/p2p_instantsend.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ def test_block_doublespend(self):
5858
# send doublespend transaction to isolated node
5959
dblspnd_txid = isolated.sendrawtransaction(dblspnd_tx['hex'])
6060
# generate block on isolated node with doublespend transaction
61-
self.bump_mocktime(600)
61+
self.bump_mocktime(599)
62+
wrong_early_block = isolated.generate(1)[0]
63+
assert not "confirmation" in isolated.getrawtransaction(dblspnd_txid, 1)
64+
isolated.invalidateblock(wrong_early_block)
65+
self.bump_mocktime(1)
6266
wrong_block = isolated.generate(1)[0]
6367
assert_equal(isolated.getrawtransaction(dblspnd_txid, 1)["confirmations"], 1)
6468
# connect isolated block to network

0 commit comments

Comments
 (0)