Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mining_prioritisetransaction.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
"prioritisetransaction", | "prioritisetransaction", | ||||
self.nodes[0].prioritisetransaction, | self.nodes[0].prioritisetransaction, | ||||
'', | '', | ||||
0, | 0, | ||||
0, | 0, | ||||
0) | 0) | ||||
# Test `prioritisetransaction` invalid `txid` | # Test `prioritisetransaction` invalid `txid` | ||||
assert_raises_rpc_error(-1, | assert_raises_rpc_error(-8, | ||||
"txid must be hexadecimal string", | "txid must be of length 64 (not 3, for 'foo')", | ||||
self.nodes[0].prioritisetransaction, | self.nodes[0].prioritisetransaction, | ||||
txid='foo', | txid='foo', | ||||
fee_delta=0) | fee_delta=0) | ||||
assert_raises_rpc_error( | |||||
-8, | |||||
"txid must be hexadecimal string (not 'Zd1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000')", | |||||
self.nodes[0].prioritisetransaction, | |||||
txid='Zd1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000', | |||||
fee_delta=0) | |||||
# Test `prioritisetransaction` invalid `dummy` | # Test `prioritisetransaction` invalid `dummy` | ||||
txid = '1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000' | txid = '1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000' | ||||
assert_raises_rpc_error(-1, | assert_raises_rpc_error(-1, | ||||
"JSON value is not a number as expected", | "JSON value is not a number as expected", | ||||
self.nodes[0].prioritisetransaction, | self.nodes[0].prioritisetransaction, | ||||
txid, | txid, | ||||
'foo', | 'foo', | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |