You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
abandontransaction needed after spending orphaned block reward #14148
When a block reward is spent together with other outputs in the wallet and that block reward is later orphaned, the wallet does not show the other funds as available anymore. Even a -rescan is not enough - only -zapwallettxes or an explicit abandontransaction "recovers" the funds. I prepared a test case that shows this behaviour.
Is this a known issue or the expected behaviour? While this situation is something that will presumably not occur in practice (as it requires a long reorg), I wonder if that transaction should be automatically abandoned as it seems clear it won't be able to be confirmed anymore.
Activity
promag commentedon Sep 21, 2018
Why should it be automatically abandoned only when spending rewards? What if there is another reorg bringing back the reward?
maflcko commentedon Apr 26, 2020
Is this still an issue with a recent version of Bitcoin Core? If yes, what are the steps to reproduce?
domob1812 commentedon Apr 27, 2020
@MarcoFalke Yes, this still applies to current
master. I've re-created a testcase showing this behaviour: test.zipOf course, @promag's point is valid. Perhaps that's the expected behaviour.
maflcko commentedon Apr 27, 2020
I think this is still a bug. Maybe submit the test case as a pull request, so that this can be fixed easier?
domob1812 commentedon Apr 28, 2020
@MarcoFalke Sure, created #18795.
Testcase for wallet issue with orphaned rewards.
Merge #18795: Test: wallet issue with orphaned rewards
7 remaining items
Merge bitcoin#18795: Test: wallet issue with orphaned rewards
Merge bitcoin#26499: wallet: Abandon descendants of orphaned coinbases
Merge bitcoin#26499: wallet: Abandon descendants of orphaned coinbases
Merge bitcoin#26499: wallet: Abandon descendants of orphaned coinbases
Merge bitcoin#26499: wallet: Abandon descendants of orphaned coinbases
Merge bitcoin#26499: wallet: Abandon descendants of orphaned coinbases