mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#31383: Add missing node.setmocktime(self.mocktime) to p2p_ibd_stalling.py
This commit is contained in:
parent
9072a10754
commit
c6f23a718c
@ -77,6 +77,7 @@ class P2PIBDStallingTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info("Check that a staller does not get disconnected if the 1024 block lookahead buffer is filled")
|
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
|
self.mocktime = int(time.time()) + 1
|
||||||
|
node.setmocktime(self.mocktime)
|
||||||
for id in range(NUM_PEERS):
|
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.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
|
peers[-1].block_store = block_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user