-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] Incorrect spendable amount after melting (a meltable) CAT #17727
Comments
Quex, it looks like the melted coin is not being marked as spent. But its correct on the chain obviously? Maybe the hinting is causing issues (like with the originating wallet not picking up new CATs bug from long ago) |
@DrakoPensulo do you see any exceptions or anything peculiar in your logs? The fact that the correct history is picked up on resync suggests to me that something to do with the state effects you have on the wallet in the custom branch is off. |
I see nothing peculiar in the logs, only
what is most likely unrelated (but note the port number while I am on testnet). Anyway, I have just repeated the steps described above (on a new receive address) and after the first melting the CAT spendable amount was correct. However, after the second and third melting the CAT spendable amount was incorrect. |
Do you have any pending transactions that are still pending after you do all of this? |
No, there are no pending transactions (at least they are not shown in the GUI). |
Hey @DrakoPensulo #17764 should take care of your issue. It's a bug in our wallet but I would recommend when you are interacting with the wallet the way you are that you push transaction records via the |
What happened?
The CAT coin which is melted is not marked as spent by the wallet. To reproduce do the following steps (on Testnet11).
use the command
cats --amount 1000000000 --fee 1000000000 --send-to txch1___YOUR___ADDRESS___HERE_ --tail 'ff02ffff01ff02ffff03ff2fffff01ff02ffff03ffff22ff0bffff09ffff11ff80ff2f80ff81bd8080ffff01ff04ffff04ff0cffff04ff0aff808080ff8080ffff01ff08ffff018c4472616b6f50656e73756c6f8080ff0180ffff01ff04ffff04ff08ffff04ff0eff808080ff808080ff0180ffff04ffff01ffff5753ff8304ef818407bfab2dff018080' --solution '()'
That command gives
The coins in the CAT wallet are
(BTW. not that many decimal places needed there)
cats --amount -200000000 --fee 1000000000 --send-to txch1___YOUR___ADDRESS___HERE_ --tail 'ff02ffff01ff02ffff03ff2fffff01ff02ffff03ffff22ff0bffff09ffff11ff80ff2f80ff81bd8080ffff01ff04ffff04ff0cffff04ff0aff808080ff8080ffff01ff08ffff018c4472616b6f50656e73756c6f8080ff0180ffff01ff04ffff04ff08ffff04ff0eff808080ff808080ff0180ffff04ffff01ffff5753ff8304ef818407bfab2dff018080' --solution '()' --push
Confirm few times by pressing ENTER and then Y, ENTER
(note the negative amount above - that means melting negative of that amount)
After that we get.
and
The coin 0x02805.... should not be on the list of unspent coins.
After resyncing the wallet the spendable amount is correct
and the list of unspent coins is also correct
Version
2.2.1
What platform are you using?
Windows
What ui mode are you using?
GUI
Relevant log output
No response
The text was updated successfully, but these errors were encountered: