Skip to content

Commit 1dddd69

Browse files
committed
Tests: Update for coin-age priority
1 parent ade8bad commit 1dddd69

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/functional/mining_prioritisetransaction.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def run_test(self):
146146

147147
# Test `prioritisetransaction` required parameters
148148
assert_raises_rpc_error(-1, "prioritisetransaction", self.nodes[0].prioritisetransaction)
149-
assert_raises_rpc_error(-1, "prioritisetransaction", self.nodes[0].prioritisetransaction, '')
150-
assert_raises_rpc_error(-1, "prioritisetransaction", self.nodes[0].prioritisetransaction, '', 0)
151149

152150
# Test `prioritisetransaction` invalid extra parameters
153151
assert_raises_rpc_error(-1, "prioritisetransaction", self.nodes[0].prioritisetransaction, '', 0, 0, 0)
@@ -160,10 +158,9 @@ def run_test(self):
160158
assert_raises_rpc_error(-8, "txid must be of length 64 (not 3, for 'foo')", self.nodes[0].prioritisetransaction, txid='foo', fee_delta=0)
161159
assert_raises_rpc_error(-8, "txid must be hexadecimal string (not 'Zd1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000')", self.nodes[0].prioritisetransaction, txid='Zd1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000', fee_delta=0)
162160

163-
# Test `prioritisetransaction` invalid `dummy`
161+
# Test `prioritisetransaction` invalid `priority_delta`
164162
txid = '1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000'
165163
assert_raises_rpc_error(-3, "JSON value of type string is not of expected type number", self.nodes[0].prioritisetransaction, txid, 'foo', 0)
166-
assert_raises_rpc_error(-8, "Priority is no longer supported, dummy argument to prioritisetransaction must be 0.", self.nodes[0].prioritisetransaction, txid, 1, 0)
167164

168165
# Test `prioritisetransaction` invalid `fee_delta`
169166
assert_raises_rpc_error(-3, "JSON value of type string is not of expected type number", self.nodes[0].prioritisetransaction, txid=txid, fee_delta='foo')

0 commit comments

Comments
 (0)