Closed kunalransing closed 4 years ago
I have not been able to recreate the error.
Are you using monero-wallet-rpc
version 0.14.1.0 or higher? Looking at that code, I do not see why the assertion should fail (i.e. subaddr_indices
should be returned).
If you are using monero-wallet-rpc
version 0.14.1.0 or higher:
Thanks.
RPC version: monero-v0.14.0.2
Daemon: testnet.xmrchain.net:28081
Wallet age: Sep 23, 2019
Network Type: testnet
Mnemonic: myth ability hiker aquarium smash exquisite vibrate hedgehog ginger fences vowels toenail school null rejoices vowels wayside nodes asleep lynx biweekly sword woken yawning smash
Thanks. I wasn't able to recreate the error after importing the wallet and calling walletRpc.getTx("b390d693542417cb2ab55de60536028104ae1358776db24ae7d84a19d105f101")
. A field that method uses, subaddress_indices
, was added to monero-wallet-rpc
in the last few releases.
Can you try calling walletRpc.rescanBlockchain()
? That method will discard local wallet (e.g. destinations, tx notes) and recreate the wallet from the blockchain.
Hi, Sorry for the late reply. I run walletRpc.rescanBlockchain() then tried to getTx() but still same error. BTW I can see above tx in log but getTx() throw Exception. Please check attached log file. xmr_gettx_log.txt
@kunalransing This issue is likely caused by running an old version of monero-wallet-rpc (v0.14.0.2). Updating to the latest (v0.14.1.0+) should resolve the issue.
Thanks. Solved issue when used version v0.14.1.2.
Verion: 0.1.3-SNAPSHOT Java code:
Error Log: