Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_maxuploadtarget.py
Show All 34 Lines | def on_block(self, message): | ||||
self.block_receive_map[message.block.sha256] += 1 | self.block_receive_map[message.block.sha256] += 1 | ||||
class MaxUploadTest(BitcoinTestFramework): | class MaxUploadTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
# Start a node with maxuploadtarget of 200 MB (/24h) | # Start a node with maxuploadtarget of 200 MB (/24h) | ||||
self.extra_args = [["-maxuploadtarget=200", "-acceptnonstdtxn=1"]] | self.extra_args = [[ | ||||
"-maxuploadtarget=200", | |||||
"-acceptnonstdtxn=1", | |||||
# bump because mocktime might cause a disconnect otherwise | |||||
"-peertimeout=9999", | |||||
]] | |||||
self.supports_cli = False | self.supports_cli = False | ||||
# Cache for utxos, as the listunspent may take a long time later in the | # Cache for utxos, as the listunspent may take a long time later in the | ||||
# test | # test | ||||
self.utxo_cache = [] | self.utxo_cache = [] | ||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |