We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf36d5 commit d92085eCopy full SHA for d92085e
test/functional/p2p_instantsend.py
@@ -58,7 +58,11 @@ def test_block_doublespend(self):
58
# send doublespend transaction to isolated node
59
dblspnd_txid = isolated.sendrawtransaction(dblspnd_tx['hex'])
60
# generate block on isolated node with doublespend transaction
61
- self.bump_mocktime(600)
+ 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)
66
wrong_block = isolated.generate(1)[0]
67
assert_equal(isolated.getrawtransaction(dblspnd_txid, 1)["confirmations"], 1)
68
# connect isolated block to network
0 commit comments