Changeset View
Changeset View
Standalone View
Standalone View
qa/rpc-tests/fundrawtransaction.py
Show All 28 Lines | def setup_network(self, split=False): | ||||
connect_nodes_bi(self.nodes, 1, 2) | connect_nodes_bi(self.nodes, 1, 2) | ||||
connect_nodes_bi(self.nodes, 0, 2) | connect_nodes_bi(self.nodes, 0, 2) | ||||
connect_nodes_bi(self.nodes, 0, 3) | connect_nodes_bi(self.nodes, 0, 3) | ||||
self.is_network_split = False | self.is_network_split = False | ||||
self.sync_all() | self.sync_all() | ||||
def run_test(self): | def run_test(self): | ||||
print("Mining blocks...") | |||||
min_relay_tx_fee = self.nodes[0].getnetworkinfo()['relayfee'] | min_relay_tx_fee = self.nodes[0].getnetworkinfo()['relayfee'] | ||||
# This test is not meant to test fee estimation and we'd like | # This test is not meant to test fee estimation and we'd like | ||||
# to be sure all txs are sent at a consistent desired feerate | # to be sure all txs are sent at a consistent desired feerate | ||||
for node in self.nodes: | for node in self.nodes: | ||||
node.settxfee(min_relay_tx_fee) | node.settxfee(min_relay_tx_fee) | ||||
# if the fee's positive delta is higher than this value tests will fail, | # if the fee's positive delta is higher than this value tests will fail, | ||||
# neg. delta always fail the tests. | # neg. delta always fail the tests. | ||||
▲ Show 20 Lines • Show All 734 Lines • Show Last 20 Lines |