Skip to content

Commit 4508519

Browse files
committed
test: Fix rawtransactions test
Looks like another `assert_raises_jsonrpc` snuck in with #11178. Change it to `assert_raises_rpc_error`.
1 parent 2971fd0 commit 4508519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/rawtransactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def run_test(self):
258258
encrawtx = "010000000001010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f50500000000000000000000"
259259
decrawtx = self.nodes[0].decoderawtransaction(encrawtx, True) # decode as witness transaction
260260
assert_equal(decrawtx['vout'][0]['value'], Decimal('1.00000000'))
261-
assert_raises_jsonrpc(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction
261+
assert_raises_rpc_error(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction
262262
# non-witness transaction
263263
encrawtx = "01000000010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f505000000000000000000"
264264
decrawtx = self.nodes[0].decoderawtransaction(encrawtx, False) # decode as non-witness transaction

0 commit comments

Comments
 (0)