Another functional test rewritten as proposed in #20078
Request for help:
node.gettransaction(txid)
fails for transactions sent with wallet.send_self_transfer
. Even though the txid
s look correct, are added to the mempool correctly, and removed from the mempool when a block is mined - all as expected.
However, node.gettransaction(txid)
throws the error:
0Traceback (most recent call last):
1 File "/Users/michaeldietz/Documents/bitcoin/test/functional/test_framework/test_framework.py", line 126, in main
2 self.run_test()
3 File "/Users/michaeldietz/Documents/bitcoin/test/functional/mempool_resurrect.py", line 43, in run_test
4 assert_equal(len(list(filter(lambda txid: node.gettransaction(txid)["confirmations"] > 0, spends_ids))), len(spends_ids))
5 File "/Users/michaeldietz/Documents/bitcoin/test/functional/mempool_resurrect.py", line 43, in <lambda>
6 assert_equal(len(list(filter(lambda txid: node.gettransaction(txid)["confirmations"] > 0, spends_ids))), len(spends_ids))
7 File "/Users/michaeldietz/Documents/bitcoin/test/functional/test_framework/coverage.py", line 47, in __call__
8 return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
9 File "/Users/michaeldietz/Documents/bitcoin/test/functional/test_framework/authproxy.py", line 146, in __call__
10 raise JSONRPCException(response['error'], status)
11test_framework.authproxy.JSONRPCException: Invalid or non-wallet transaction id (-5)
Anyone know what’s going wrong / can point me in the right direction if I’m making a mistake, or MiniWallet
needs to be improved for this to work correctly?