Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_maxuploadtarget.py
Show All 40 Lines | def set_test_params(self): | ||||
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"]] | self.extra_args = [["-maxuploadtarget=200"]] | ||||
# 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): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
# Before we connect anything, we first set the time on the node | # Before we connect anything, we first set the time on the node | ||||
# to be in the past, otherwise things break because the CNode | # to be in the past, otherwise things break because the CNode | ||||
# time counters can't be reset backward after initialization | # time counters can't be reset backward after initialization | ||||
old_time = int(time.time() - 2 * 60 * 60 * 24 * 7) | old_time = int(time.time() - 2 * 60 * 60 * 24 * 7) | ||||
self.nodes[0].setmocktime(old_time) | self.nodes[0].setmocktime(old_time) | ||||
# Generate some old blocks | # Generate some old blocks | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |