Only return from wait_for_chainlock when the block is actually processed (#2728)

getblock also returns blocks which are not processed yet or in the middle
of processing.
This commit is contained in:
Alexander Block 2019-02-27 18:42:06 +01:00 committed by UdjinM6
parent 5a61f7b16a
commit d2573c43b6

View File

@ -102,7 +102,7 @@ class LLMQChainLocksTest(DashTestFramework):
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