grin-wallet icon indicating copy to clipboard operation
grin-wallet copied to clipboard

inconsistent wallet transactions state

Open deevope opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. After a long reorg that doesn't mine any transactions (double-spend...) which has been received and directly spent during the reorg, these transactions are in inconsistent state. We don't check whether they are still confirmed or not, eg we don't track the kernel. That's a big issue for wallets handling a lot of transactions volume.

Describe the solution you'd like If a reorg is detected and our latest block scan is included in the stale blocks, check the kernel of the confirmed received/spent transactions and change their status to unconfirmed if they were not mined again at the end of the reorg.

deevope avatar Apr 18 '21 10:04 deevope

I think that's something that we might want to address, otherwise the only option is a scan from scratch which might lose any local data that is kept.

phyro avatar Jun 07 '21 16:06 phyro