diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-12-19 13:23:57 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-12-19 13:24:51 +0100 |
commit | 45085192501db329e1eff330d9c1244f101449a3 (patch) | |
tree | 9f871b25fbf4ee587853972f31bbda51596a8376 /test/functional/rawtransactions.py | |
parent | 2971fd030f6e20ff5279bd86ba18acc5e5ed1ce9 (diff) | |
download | bitcoin-45085192501db329e1eff330d9c1244f101449a3.tar.xz |
test: Fix rawtransactions test
Looks like another `assert_raises_jsonrpc` snuck in with #11178.
Change it to `assert_raises_rpc_error`.
Diffstat (limited to 'test/functional/rawtransactions.py')
-rwxr-xr-x | test/functional/rawtransactions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rawtransactions.py b/test/functional/rawtransactions.py index d6213a4ba5..aa519eb8e8 100755 --- a/test/functional/rawtransactions.py +++ b/test/functional/rawtransactions.py @@ -258,7 +258,7 @@ class RawTransactionsTest(BitcoinTestFramework): encrawtx = "010000000001010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f50500000000000000000000" decrawtx = self.nodes[0].decoderawtransaction(encrawtx, True) # decode as witness transaction assert_equal(decrawtx['vout'][0]['value'], Decimal('1.00000000')) - assert_raises_jsonrpc(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction + assert_raises_rpc_error(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction # non-witness transaction encrawtx = "01000000010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f505000000000000000000" decrawtx = self.nodes[0].decoderawtransaction(encrawtx, False) # decode as non-witness transaction |