Reorganize(): remove spurious TxnAbort() #1300

pull jgarzik wants to merge 1 commits into bitcoin:master from jgarzik:extra-abort changing 1 files +0 −1
  1. jgarzik commented at 4:25 PM on May 14, 2012: contributor

    If Reorganize() fails, then its caller, CBlock::SetBestChain(), will call TxnAbort().

    Redundant TxnAbort() calls are harmless. The second will return an error return value, with no other side effects. TxnAbort() return values are generally never checked. The impact is nil.

  2. jgarzik commented at 7:13 PM on May 19, 2012: contributor

    This does not seem to cause problems in testing, but would appreciate some additional eyes on it.

  3. Reorganize(): remove spurious TxnAbort()
    If Reorganize() fails, then its caller, CBlock::SetBestChain(),
    will call TxnAbort().
    
    Redundant TxnAbort() calls are harmless.  The second will return an
    error return value, with no other side effects.  TxnAbort() return
    values are generally never checked.  The impact is nil.
    b52a270538
  4. jgarzik merged this on May 22, 2012
  5. jgarzik closed this on May 22, 2012

  6. jgarzik deleted the branch on Aug 24, 2014
  7. suprnurd referenced this in commit 3bfa5392fa on Dec 5, 2017
  8. lateminer referenced this in commit a03d9f21bc on Jan 22, 2019
  9. lateminer referenced this in commit 0e3644d531 on May 6, 2020
  10. DrahtBot locked this on Sep 8, 2021
Contributors

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-20 00:16 UTC

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