Skip to content

Commit 101cd6e

Browse files
committed
p2p_interface: adjust to ">= 1"
Sometimes, p2p_block_store.blocks[best_block] == 2.
1 parent c3f8154 commit 101cd6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scenarios/test_scenarios/p2p_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run_test(self):
4949
good_getdata = msg_getdata()
5050
good_getdata.inv.append(CInv(t=2, h=best_block))
5151
p2p_block_store.send_and_ping(good_getdata)
52-
p2p_block_store.wait_until(lambda: p2p_block_store.blocks[best_block] == 1)
52+
p2p_block_store.wait_until(lambda: p2p_block_store.blocks[best_block] >= 1)
5353

5454

5555
def main():

0 commit comments

Comments
 (0)