Skip to content

Commit d2573c4

Browse files
codablockUdjinM6
authored andcommitted
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.
1 parent 5a61f7b commit d2573c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/rpc-tests/llmq-chainlocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def wait_for_chainlock(self, node, block_hash):
102102
while time() - t < 15:
103103
try:
104104
block = node.getblock(block_hash)
105-
if block["chainlock"]:
105+
if block["confirmations"] > 0 and block["chainlock"]:
106106
return
107107
except:
108108
# block might not be on the node yet

0 commit comments

Comments
 (0)