CommitTransaction has an operations ordering issue #2736

issue pstratem opened this issue on June 4, 2013
  1. pstratem commented at 5:39 PM on June 4, 2013: contributor

    wtxNew is committed to the wallet before the transactions it depends on

    If bitcoind is killed after committing wtxNew but before committing the transaction it depends on the transaction could get stuck.

    I'm thinking that should be rearranged such that the transaction wtxNew depends on are commited, wtxNew is committed, and finally the transaction outputs wtxNew uses are marked as spent.

    This bug should be extremely rare on the main network since very few people are creating transaction which spend outputs that nobody else has heard of.

    I'm not really sure about the proposed solution, criticism needed.

  2. Diapolo commented at 2:13 PM on October 28, 2013: none

    @gavinandresen Perhaps you should take look at this?

  3. laanwj commented at 3:37 PM on April 23, 2014: member

    Is this still the case after #3694? Marking inputs as spent was removed there, and AFAIK the transactions it depends on are also no longer written. Can you point to the code where this happens?

  4. gavinandresen added the label Wallet on Oct 28, 2014
  5. laanwj removed the label Priority Medium on Apr 25, 2017
  6. laanwj commented at 11:56 AM on April 25, 2017: member

    @pstratem is this still the case?

  7. MarcoFalke closed this on Jul 16, 2018

  8. MarcoFalke locked this on Sep 8, 2021
Labels

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: 2026-04-19 00:16 UTC

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