Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mining_prioritisetransaction.py
Show All 22 Lines | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
# TODO: remove -txindex. Currently required for getrawtransaction call | # TODO: remove -txindex. Currently required for getrawtransaction call | ||||
# (called by calculate_fee_from_txid) | # (called by calculate_fee_from_txid) | ||||
self.extra_args = [[ | self.extra_args = [[ | ||||
"-printpriority=1", | "-printpriority=1", | ||||
"-acceptnonstdtxn=1", | "-acceptnonstdtxn=1", | ||||
"-txindex" | "-txindex" | ||||
]] * self.num_nodes | ]] * self.num_nodes | ||||
self.supports_cli = False | |||||
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, | ||||
"prioritisetransaction", | "prioritisetransaction", | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |