grin-wallet
grin-wallet copied to clipboard
Canceling a transaction may result in an incorrect wallet balance
The wallet allows you to cancel a transaction that has been broadcasted to the network, but has not yet received any confirmation.
Let's imagine that you have an unspent output of 5 grin coins in your wallet. Steps to reproduce:
- grin-wallet send 0.1
- grin-wallet finalize
- grin-wallet cancel -i id
- wait for at least one confirmation of the transaction created in step 1.
- check your outputs and wallet balance
Now you have 2 outputs: 5 coins + 4.9 coins (a change output of the previous tx) and your wallet balance is 9.9 grin coins, which is incorrect.
You have to re-scan (grin-wallet scan) the wallet to fix the balance.