-
Notifications
You must be signed in to change notification settings - Fork 993
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
Grins lost after cancelling transaction #1909
Comments
It happened to me, after cancelling a tx and some additional operations my balance was quite off. But in my case I was running a malfunctioning (for unrelated test purpose) version of grin so I decided it was my fault. I restored my balance with |
After some tests I believe I've managed to replicate the bug. Let's analyze a transaction where the sender sends 10 grins to himself. Running
If you cancel the transaction 244 by typing And if I were to run |
@aacoimbra When you send grins to another wallet, there is 1 entry created in either wallet. The sender creates a transaction with their own unique id, and all their associated inputs and outputs are associated with it. The receiver also creates a tx log entry in their wallet, referencing their output(s). These transaction log entries are not linked to each other (other than by slate UUID), they're just references maintained separately in each wallet. If you're sending grins to yourself, then you're acting as both recipient and sender, and you have 2 transactions to cancel from the log (a send tx and a recieve tx), not just one. Also, in the example above where you're sending grins to yourself via http, you've sent and received the transaction and posted it to the chain in one operation ( Admittedly none of this is obvious or ideal, and we need better ways of dealing with these situations. |
|
From user "Arthur" on Grin-forum:
The text was updated successfully, but these errors were encountered: