diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-07 17:10:24 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-08 09:07:33 +0100 |
commit | faabc26a61873b2cd0390a21df571fe53c893c11 (patch) | |
tree | aae22ab37e999ee69cbf444d16247e396d4c9e39 /test | |
parent | 42675e783337bf56dfc51df6c14931df5e72f185 (diff) |
test: Replace getmempoolentry with testmempoolaccept in MiniWallet
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/test_framework/wallet.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index a71f2c69cb..7cb74bdcb3 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -71,9 +71,9 @@ class MiniWallet: tx.wit.vtxinwit[0].scriptWitness.stack = [CScript([OP_TRUE])] tx_hex = tx.serialize().hex() - txid = from_node.sendrawtransaction(tx_hex) - self._utxos.append({'txid': txid, 'vout': 0, 'value': send_value}) - tx_info = from_node.getmempoolentry(txid) + tx_info = from_node.testmempoolaccept([tx_hex])[0] + self._utxos.append({'txid': tx_info['txid'], 'vout': 0, 'value': send_value}) + from_node.sendrawtransaction(tx_hex) assert_equal(tx_info['vsize'], vsize) - assert_equal(tx_info['fee'], fee) - return {'txid': txid, 'wtxid': tx_info['wtxid'], 'hex': tx_hex} + assert_equal(tx_info['fees']['base'], fee) + return {'txid': tx_info['txid'], 'wtxid': from_node.decoderawtransaction(tx_hex)['hash'], 'hex': tx_hex} |