Changeset View
Changeset View
Standalone View
Standalone View
test/functional/prioritise_transaction.py
Show All 13 Lines | |||||
from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE | from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE | ||||
from test_framework.blocktools import send_big_transactions, create_confirmed_utxos | from test_framework.blocktools import send_big_transactions, create_confirmed_utxos | ||||
class PrioritiseTransactionTest(BitcoinTestFramework): | class PrioritiseTransactionTest(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 | ||||
self.extra_args = [["-printpriority=1"]] | self.extra_args = [["-printpriority=1", | ||||
"-deprecatedrpc=signrawtransaction"]] | |||||
def run_test(self): | def run_test(self): | ||||
self.relayfee = self.nodes[0].getnetworkinfo()['relayfee'] | self.relayfee = self.nodes[0].getnetworkinfo()['relayfee'] | ||||
utxo_count = 90 | utxo_count = 90 | ||||
utxos = create_confirmed_utxos(self.nodes[0], utxo_count) | utxos = create_confirmed_utxos(self.nodes[0], utxo_count) | ||||
# our transactions are smaller than 100kb | # our transactions are smaller than 100kb | ||||
base_fee = self.relayfee * 100 | base_fee = self.relayfee * 100 | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |