diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-01-11 15:39:57 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-01-11 16:22:33 +0100 |
commit | b24f6c6855bdd09bf445faeebe9d54c3d07a46d9 (patch) | |
tree | b7645a31b535818d56e7724dd39204a319535555 /test/functional/mempool_spend_coinbase.py | |
parent | f30041c9143d0added18105c9f0c4ae3f340efbc (diff) | |
download | bitcoin-b24f6c6855bdd09bf445faeebe9d54c3d07a46d9.tar.xz |
test: MiniWallet: support default `from_node` for creating txs
If no `from_node` parameter is passed explicitely to the
`create_self_transfer` method, the test node passed in the course
of creating the MiniWallet instance is used. This seems to
be the main use-case in most of the current functional
tests, i.e. in many instances the calls can be shortened.
Diffstat (limited to 'test/functional/mempool_spend_coinbase.py')
-rwxr-xr-x | test/functional/mempool_spend_coinbase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/mempool_spend_coinbase.py b/test/functional/mempool_spend_coinbase.py index 5afa6be925..9c43ddaf6f 100755 --- a/test/functional/mempool_spend_coinbase.py +++ b/test/functional/mempool_spend_coinbase.py @@ -40,7 +40,7 @@ class MempoolSpendCoinbaseTest(BitcoinTestFramework): spend_mature_id = wallet.send_self_transfer(from_node=self.nodes[0], utxo_to_spend=utxo_mature)["txid"] # other coinbase should be too immature to spend - immature_tx = wallet.create_self_transfer(from_node=self.nodes[0], utxo_to_spend=utxo_immature, mempool_valid=False) + immature_tx = wallet.create_self_transfer(utxo_to_spend=utxo_immature, mempool_valid=False) assert_raises_rpc_error(-26, "bad-txns-premature-spend-of-coinbase", lambda: self.nodes[0].sendrawtransaction(immature_tx['hex'])) |