Conversation
|
This was fast :P |
|
I can't test it since I don't have a full node with indexes Do we have a scenario I can test on testnet instead? |
|
@sakdeniz can you give a test scenario? |
|
A new build of af06dc7 has completed succesfully! |
|
Tested on devnet with the scenario given via discord, working for me on Ubuntu 18.04 |
|
@sakdeniz reported the issue still exists and hopefully he can provide steps to replicate. |
|
Yeah, I could not for the life of me replicate on devnet. |
|
Was finally able to replicate the issue: This wallet should have zero balance, but getaddressbalance call still returns a value. It seems it's counting "change" coins as part of the balance. |
|
A new build of f56da3c has completed succesfully! |
mxaddict
left a comment
There was a problem hiding this comment.
Checked the same scenario I did before, and it's now getting the correct ending balance for my test scenario.
chasingkirkjufell
left a comment
There was a problem hiding this comment.
Replicated the balance issue with sending coins from A to a cold-staking address A (spending) + B, then back to A. The amount was count twice.
Confirm the fix with this new PR with Gitian build on Windows 10.
|
Should we merge? |
Fixes #538. Without this PR the balance was not correctly accounted for addresses used as both cold staking and legacy spending addresses.