From d2573c43b6991fac8f3bd16f69be820a64042fa3 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 27 Feb 2019 18:42:06 +0100 Subject: [PATCH] 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. --- qa/rpc-tests/llmq-chainlocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/rpc-tests/llmq-chainlocks.py b/qa/rpc-tests/llmq-chainlocks.py index cdb76ad74a497..2086b0d15c381 100755 --- a/qa/rpc-tests/llmq-chainlocks.py +++ b/qa/rpc-tests/llmq-chainlocks.py @@ -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