mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-19 20:25:18 +01:00
net: Use mockable time for ping/pong, add tests
This commit is contained in:
@@ -35,7 +35,11 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.setup_clean_chain = True
|
||||
self.num_nodes = 1
|
||||
self.extra_args = [["-maxuploadtarget=800", "-acceptnonstdtxn=1"]]
|
||||
self.extra_args = [[
|
||||
"-maxuploadtarget=800",
|
||||
"-acceptnonstdtxn=1",
|
||||
"-peertimeout=9999", # bump because mocktime might cause a disconnect otherwise
|
||||
]]
|
||||
self.supports_cli = False
|
||||
|
||||
# Cache for utxos, as the listunspent may take a long time later in the test
|
||||
|
||||
Reference in New Issue
Block a user