Closed garyyu closed 6 years ago
It looks like 'Child Key Index' or n_child
was reused locally in the wallet here for some reason (which it shouldn't be, there's an index that's always incremented). I can try to reproduce locally but likely there is something odd about the dataset.. quite possibly that it was grin wallet restore
d (which isn't 100% functional yet and is probably not setting the child key index counter properly)
Indeed! After a wallet restore, the deriv_idx
is left as 0
, that's the root cause of overwriting in future wallet receiving.
Try to fix it in https://github.com/mimblewimble/grin/pull/1374.
Bug. It happens each time when call this send.
Sender:
Recipient: (before this sending)
Recipient: (after this sending)
As you see, the recipient's
Currently Spendable
has been changed from1734.484
to1674.484
, and 60 grin missed.Look into the recipient's
outputs
, that60 grin
coinbase output has been changed as normal output and value is changed from 60 to 3.33.If I do this sending again, this issue is always reproduced, for the moment. I already tested for 3 times.