diff options
| author | John Newbery <[email protected]> | 2017-07-12 10:33:46 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-10-05 09:57:19 -0400 |
| commit | 47ba8cf71e9a3a6f7452488fc9ab3b350f0fae36 (patch) | |
| tree | b21f00f81ce5e933436f9418ae73f8e37f81fcd1 /test/functional/mempool_reorg.py | |
| parent | [tests] do not allow assert_raises_message to be called with JSONRPCException (diff) | |
| download | discoin-47ba8cf71e9a3a6f7452488fc9ab3b350f0fae36.tar.xz discoin-47ba8cf71e9a3a6f7452488fc9ab3b350f0fae36.zip | |
scripted-diff: rename assert_raises_jsonrpc to assert_raises_rpc error
-BEGIN VERIFY SCRIPT-
sed -i 's/assert_raises_jsonrpc/assert_raises_rpc_error/g' test/functional/*py test/functional/test_framework/*py
-END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/mempool_reorg.py')
| -rwxr-xr-x | test/functional/mempool_reorg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/mempool_reorg.py b/test/functional/mempool_reorg.py index 7dfddd323..2803371f5 100755 --- a/test/functional/mempool_reorg.py +++ b/test/functional/mempool_reorg.py @@ -50,14 +50,14 @@ class MempoolCoinbaseTest(BitcoinTestFramework): timelock_tx = timelock_tx[:-8] + hex(self.nodes[0].getblockcount() + 2)[2:] + "000000" timelock_tx = self.nodes[0].signrawtransaction(timelock_tx)["hex"] # This will raise an exception because the timelock transaction is too immature to spend - assert_raises_jsonrpc(-26, "non-final", self.nodes[0].sendrawtransaction, timelock_tx) + assert_raises_rpc_error(-26, "non-final", self.nodes[0].sendrawtransaction, timelock_tx) # Broadcast and mine spend_102 and 103: spend_102_id = self.nodes[0].sendrawtransaction(spend_102_raw) spend_103_id = self.nodes[0].sendrawtransaction(spend_103_raw) self.nodes[0].generate(1) # Time-locked transaction is still too immature to spend - assert_raises_jsonrpc(-26,'non-final', self.nodes[0].sendrawtransaction, timelock_tx) + assert_raises_rpc_error(-26,'non-final', self.nodes[0].sendrawtransaction, timelock_tx) # Create 102_1 and 103_1: spend_102_1_raw = create_tx(self.nodes[0], spend_102_id, node1_address, 49.98) |