Dear Multichain,
I am facing issues related listing of transactions on an imported address. I think the issue have come up from the last two version of which are 23 and 22.
When the issue is noticed?
I am not very sure when it happens. I have observed it more when the node where is the address is imported is restarted, however I have observed the pattern at times without a restart process.
Details:
Example an address A which is managed by Node NODE_1 is imported in NODE_B with re scan set to true. The commands listaddresstransactions and listunspent provide same result on both the nodes.
However when the issue happens (which I am not sure how is it triggered) the following happens:
- NODE_A shows proper listing in both the commands
- NODE_B shows proper listing in listaddresstransaction but empty in listunspent
- In some case NODE_B shows empty listing for both commands.
- If validate address command is issued over address A in NODE_B it shows as valid address with true on watch only.
- Most of the time to solve the issue, I have to restart NODE_B with reindex=1
- I have created backup of the chain folder when it have reached the issue where listaddresstransaction works but listunspent doesn't. If required I can share.
I initially thought the issue is related to the new db version of the wallet so I degraded it, found the same issue.
Below are some of the info (simulation of issue):
NODE_B
multichain-cli pf2 validateaddress 1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU
{"method":"validateaddress","params":["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU"],"id":1,"chain_name":"pf2"}
{
"isvalid" : true,
"address" : "1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU",
"ismine" : false,
"iswatchonly" : true,
"isscript" : false,
"account" : "true"
}
---------------------
multichain-cli pf2 listaddresstransactions 1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU 1 41
{"method":"listaddresstransactions","params":["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU",1,41],"id":1,"chain_name":"pf2"}
[
{
"balance" : {
"amount" : 0.00000000,
"assets" : [
---
.multichain$ multichain-cli pf2 listaddresstransactions 1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU 1 42
{"method":"listaddresstransactions","params":["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU",1,42],"id":1,"chain_name":"pf2"}
[
]
-------
multichain-cli pf2 listunspent 0 800000 '["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU"]'
{"method":"listunspent","params":[0,800000,["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU"]],"id":1,"chain_name":"pf2"}
[
]
-----------
NODE_A
multichain-cli pf2 listaddresstransactions 1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU 1 41
{"method":"listaddresstransactions","params":["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU",1,41],"id":1,"chain_name":"pf2"}
[
{
"balance" : {
"amount" : 0.00000000,
------
multichain-cli pf2 listaddresstransactions 1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU 1 42
{"method":"listaddresstransactions","params":["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU",1,42],"id":1,"chain_name":"pf2"}
[
]
-------------
multichain-cli pf2 listunspent 0 800000 '["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU"]'
{"method":"listunspent","params":[0,800000,["1FC9HcFhXxooSTtBJj3cdAgauZMLD6quggHyFU"]],"id":1,"chain_name":"pf2"}
[
{
"txid" : "1ff3964c99504dc185047cb17312a784fdf25095d55de1a60896c83a56df1ea0",
"vout" : 0,
---------