Skip to content

Commit

Permalink
merge bitcoin#31383: Add missing node.setmocktime(self.mocktime) to p…
Browse files Browse the repository at this point in the history
…2p_ibd_stalling.py
  • Loading branch information
kwvg committed Dec 14, 2024
1 parent 9072a10 commit c6f23a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/p2p_ibd_stalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def run_test(self):

self.log.info("Check that a staller does not get disconnected if the 1024 block lookahead buffer is filled")
self.mocktime = int(time.time()) + 1
node.setmocktime(self.mocktime)
for id in range(NUM_PEERS):
peers.append(node.add_outbound_p2p_connection(P2PStaller(stall_block), services = NODE_NETWORK | NODE_BLOOM, p2p_idx=id, connection_type="outbound-full-relay"))
peers[-1].block_store = block_dict
Expand Down

0 comments on commit c6f23a7

Please sign in to comment.