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:
parent
5a61f7b16a
commit
d2573c43b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user