Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mining_prioritisetransaction.py
Show All 15 Lines | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, assert_raises_rpc_error | from test_framework.util import assert_equal, assert_raises_rpc_error | ||||
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 = 2 | self.num_nodes = 2 | ||||
# TODO: remove -txindex. Currently required for getrawtransaction call | |||||
# (called by calculate_fee_from_txid) | |||||
self.extra_args = [[ | self.extra_args = [[ | ||||
"-printpriority=1", | "-printpriority=1", | ||||
"-acceptnonstdtxn=1", | "-acceptnonstdtxn=1", | ||||
"-txindex" | |||||
]] * self.num_nodes | ]] * self.num_nodes | ||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
def run_test(self): | def run_test(self): | ||||
# Test `prioritisetransaction` required parameters | # Test `prioritisetransaction` required parameters | ||||
assert_raises_rpc_error(-1, | assert_raises_rpc_error(-1, | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |