Skip to content

Commit

Permalink
Wait on all nodes for the locks
Browse files Browse the repository at this point in the history
Otherwise we end up with the sender having it locked but other nodes
not yet, failing the test.
  • Loading branch information
codablock committed Mar 18, 2019
1 parent 3a88dc7 commit 72f0748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qa/rpc-tests/p2p-instantsend.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def test_doublespend(self, new_is = False):
# instantsend to receiver
receiver_addr = receiver.getnewaddress()
is_id = sender.instantsendtoaddress(receiver_addr, 0.9)
self.wait_for_instantlock(is_id, sender)
for node in self.nodes:
if node is not isolated:
self.wait_for_instantlock(is_id, node)
# send doublespend transaction to isolated node
isolated.sendrawtransaction(dblspnd_tx['hex'])
# generate block on isolated node with doublespend transaction
Expand Down

0 comments on commit 72f0748

Please sign in to comment.