Skip to content

Commit

Permalink
Only return from wait_for_chainlock when the block is actually proces…
Browse files Browse the repository at this point in the history
…sed (#2728)

getblock also returns blocks which are not processed yet or in the middle
of processing.
  • Loading branch information
codablock authored and UdjinM6 committed Feb 27, 2019
1 parent 5a61f7b commit d2573c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/rpc-tests/llmq-chainlocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def wait_for_chainlock(self, node, block_hash):
while time() - t < 15:
try:
block = node.getblock(block_hash)
if block["chainlock"]:
if block["confirmations"] > 0 and block["chainlock"]:
return
except:
# block might not be on the node yet
Expand Down

0 comments on commit d2573c4

Please sign in to comment.