abandontransaction needed after spending orphaned block reward #14148

issue domob1812 openend this issue on September 4, 2018
  1. domob1812 commented at 4:19 pm on September 4, 2018: contributor

    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.

  2. maflcko added the label Wallet on Sep 4, 2018
  3. promag commented at 1:22 pm on September 21, 2018: member
    Why should it be automatically abandoned only when spending rewards? What if there is another reorg bringing back the reward?
  4. maflcko commented at 12:28 pm on April 26, 2020: member
    Is this still an issue with a recent version of Bitcoin Core? If yes, what are the steps to reproduce?
  5. maflcko closed this on Apr 26, 2020

  6. domob1812 commented at 10:53 am on April 27, 2020: contributor

    @MarcoFalke Yes, this still applies to current master. I’ve re-created a testcase showing this behaviour: test.zip

    Of course, @promag’s point is valid. Perhaps that’s the expected behaviour.

  7. maflcko commented at 11:29 am on April 27, 2020: member
    I think this is still a bug. Maybe submit the test case as a pull request, so that this can be fixed easier?
  8. maflcko reopened this on Apr 27, 2020

  9. domob1812 referenced this in commit 2ca29a4626 on Apr 28, 2020
  10. domob1812 referenced this in commit eb703bd99c on Apr 28, 2020
  11. domob1812 commented at 7:28 am on April 28, 2020: contributor
    @MarcoFalke Sure, created #18795.
  12. domob1812 referenced this in commit 065f9f623d on May 14, 2020
  13. domob1812 referenced this in commit 7aeaa92ae0 on May 14, 2020
  14. domob1812 referenced this in commit ef9f3f4b25 on Feb 25, 2021
  15. domob1812 referenced this in commit e4356f6a6c on Jun 2, 2021
  16. maflcko referenced this in commit 3ac5209662 on Jun 4, 2021
  17. sidhujag referenced this in commit d3e62a7199 on Jun 4, 2021
  18. fanquake referenced this in commit e1ac19222a on Jun 7, 2021
  19. Manny27nyc referenced this in commit d6f14f14cf on Jun 7, 2021
  20. rebroad referenced this in commit ace03bd8c8 on Jun 23, 2021
  21. janus referenced this in commit 2954d19525 on Oct 29, 2021
  22. glozow closed this on Jan 30, 2023

  23. sidhujag referenced this in commit 918e7371bc on Jan 30, 2023
  24. vijaydasmp referenced this in commit 4c8d346906 on Nov 25, 2023
  25. vijaydasmp referenced this in commit 7dfd71f00f on Nov 25, 2023
  26. vijaydasmp referenced this in commit 4ab7021fac on Nov 25, 2023
  27. vijaydasmp referenced this in commit 00e3529860 on Nov 25, 2023
  28. vijaydasmp referenced this in commit d7df8e0a53 on Nov 26, 2023
  29. vijaydasmp referenced this in commit 03463eed44 on Nov 27, 2023
  30. vijaydasmp referenced this in commit fbb0627d33 on Dec 2, 2023
  31. vijaydasmp referenced this in commit c77ecec0bd on Dec 4, 2023
  32. vijaydasmp referenced this in commit 6c85012076 on Dec 6, 2023
  33. PastaPastaPasta referenced this in commit a2e149a054 on Dec 6, 2023
  34. UdjinM6 referenced this in commit 8b98e1ab7b on Dec 8, 2023
  35. vijaydasmp referenced this in commit 141339ae2a on Dec 9, 2023
  36. bitcoin locked this on Jan 30, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-06-26 13:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me