-
Notifications
You must be signed in to change notification settings - Fork 94
[INDEX] Index cold staking UTXOs by spending address #731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[INDEX] Index cold staking UTXOs by spending address #731
Conversation
A new build of c5d657f has completed succesfully! |
Changes make sense, will test once I get to my PC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test scenario seems to be working, but I think it also works on master branch. Can someone else test master branch to make sure I'm still sane? Haha.
@sakdeniz can you confirm this fixes your issue? |
I could not see a problem in my tests. |
I am getting "unknown address type" for cold-staking v2. Is the RPC command compatible with cold-staking v2? |
I guess this command is for normal addresses, but I don't see a difference in command output compared to current master. What's the expected change from this PR? |
@sakdeniz reported this issue originally, so probably he can describe what happened better.. From what I remember, without this patch, coins sent to a cold staking address were accounted for the staking address instead of the spending address in the spending index. The spending index tracks the UTXO set. With this pr's path applied, outputs sent to a cold staking address should not show in the output of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested gitian build on Windows 10
This PR changes the behaviour of the spending index, indexing utxos by the spending address in case of cold staking outputs.
Test in devnet: