We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23114cd commit f02bf18Copy full SHA for f02bf18
test/functional/dip3-deterministicmns.py
@@ -26,6 +26,8 @@ def __init__(self):
26
self.extra_args += ["-sporkkey=cP4EKFyJsHT39LDqgdcB43Y3YXjNyjb5Fuas1GQSeAtjnZWmZEQK"]
27
self.extra_args += ["-dip3params=135:150"]
28
29
+
30
+ def setup_network(self):
31
disable_mocktime()
32
self.start_controller_node()
33
test/functional/fundrawtransaction-hd.py
@@ -13,18 +13,15 @@ def __init__(self):
13
super().__init__()
14
self.setup_clean_chain = True
15
self.num_nodes = 4
16
+ self.extra_args = [['-usehd=1']] * self.num_nodes
17
- def setup_network(self, split=False):
18
- self.nodes = start_nodes(4, self.options.tmpdir, [['-usehd=1']] * self.num_nodes, stderr=sys.stdout)
19
-
+ self.setup_nodes(stderr=sys.stdout)
20
connect_nodes_bi(self.nodes,0,1)
21
connect_nodes_bi(self.nodes,1,2)
22
connect_nodes_bi(self.nodes,0,2)
23
connect_nodes_bi(self.nodes,0,3)
24
25
- self.is_network_split=False
- self.sync_all()
def run_test(self):
self.log.info("Mining blocks...")
@@ -456,7 +453,6 @@ def run_test(self):
456
453
457
454
458
455
459
460
self.sync_all()
461
462
# drain the keypool
test/functional/fundrawtransaction.py
@@ -21,9 +21,10 @@ def __init__(self):
+ self.extra_args = [['-usehd=0']] * self.num_nodes
def setup_network(self, split=False):
- self.setup_nodes([['-usehd=0']] * self.num_nodes)
+ self.setup_nodes()
connect_nodes_bi(self.nodes, 0, 1)
connect_nodes_bi(self.nodes, 1, 2)
test/functional/listtransactions.py
@@ -23,7 +23,7 @@ def __init__(self):
def setup_nodes(self):
#This test requires mocktime
- enable_mocktime()
+ set_cache_mocktime()
self.nodes = start_nodes(self.num_nodes, self.options.tmpdir)
test/functional/p2p-compactblocks.py
@@ -95,7 +95,7 @@ def __init__(self):
95
96
# both nodes has the same version
97
self.num_nodes = 2
98
- self.extra_args = [["-txindex"]]
+ self.extra_args = [["-txindex"]] * 2
99
self.utxos = []
100
101
def build_block_on_tip(self, node):
test/functional/p2p-fingerprint.py
@@ -40,11 +40,6 @@ def set_test_params(self):
40
41
self.num_nodes = 1
42
43
- # TODO also remove this when bitcoin#11121 is backported
44
45
- self.nodes = start_nodes(self.num_nodes, self.options.tmpdir)
46
- self.is_network_split = False
47
48
# Build a chain of blocks on top of given one
49
def build_chain(self, nblocks, prev_hash, prev_height, prev_median_time):
50
blocks = []
test/functional/prioritise_transaction.py
@@ -14,7 +14,7 @@ def __init__(self):
- self.extra_args = [["-printpriority=1"] * 2]
+ self.extra_args = [["-printpriority=1"]] * 2
self.txouts = gen_return_txouts()
test/functional/receivedby.py
@@ -31,7 +31,7 @@ def __init__(self):
34
35
36
37
test/functional/test_framework/test_framework.py
@@ -17,25 +17,29 @@
from concurrent.futures import ThreadPoolExecutor
from .util import (
- assert_equal,
- start_nodes,
PortSeed,
+ GENESISTIME,
MAX_NODES,
+ assert_equal,
bitcoind_processes,
check_json_precision,
connect_nodes_bi,
connect_nodes,
+ copy_datadir,
disable_mocktime,
disconnect_nodes,
enable_coverage,
- enable_mocktime,
get_mocktime,
get_rpc_proxy,
initialize_datadir,
log_filename,
p2p_port,
rpc_url,
38
+ set_cache_mocktime,
39
+ set_genesis_mocktime,
+ set_mocktime,
set_node_times,
+ satoshi_round,
start_node,
start_nodes,
stop_node,
@@ -44,15 +48,7 @@
sync_mempools,
sync_masternodes,
wait_for_bitcoind_start,
- set_cache_mocktime,
- set_genesis_mocktime,
- get_mocktime,
- set_mocktime,
51
- set_node_times,
52
- p2p_port,
53
- satoshi_round,
54
- wait_to_sync,
55
- copy_datadir)
+ wait_to_sync)
56
from .authproxy import JSONRPCException
57
58
class BitcoinTestFramework(object):
test/functional/wallet-accounts.py
@@ -25,15 +25,15 @@ def __init__(self):
- self.extra_args = [[]]
+ self.extra_args = [["-paytxfee=0.0001"]]
node = self.nodes[0]
# Check that there's no UTXO on any of the nodes
assert_equal(len(node.listunspent()), 0)
# Note each time we call generate, all generated coins go into
- # the same address, so we call twice to get two addresses w/50 each
+ # the same address, so we call twice to get two addresses w/500 each
node.generate(1)
node.generate(101)
assert_equal(node.getbalance(), 1000)
@@ -57,9 +57,11 @@ def run_test(self):
common_address = "yd5KMREs3GLMe6mTJYr3YrH1juwNwrFCfB"
txid = node.sendmany(
59
fromaccount="",
60
- amounts={common_address: 100},
61
- subtractfeefrom=[common_address],
+ amounts={common_address: 1000},
62
minconf=1,
+ addlocked=False,
63
+ comment="",
64
+ subtractfeefrom=[common_address],
65
)
66
tx_details = node.gettransaction(txid)
67
fee = -tx_details['details'][0]['fee']
0 commit comments