Skip to content

Conversation

jgarzik
Copy link
Contributor

@jgarzik jgarzik commented May 14, 2012

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.

@jgarzik
Copy link
Contributor Author

jgarzik commented May 19, 2012

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

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.
@jgarzik jgarzik merged commit b52a270 into bitcoin:master May 22, 2012
@jgarzik jgarzik deleted the extra-abort branch August 24, 2014 04:19
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
* fix flag/ref order

* hold cs_vNodes in ConnectNode a little bit longer

* fix
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 22, 2019
move fastfilter from gigaperf, add unit tests
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
…ature

b32e418 [Wallet] Add function CMerkleTx::IsInMainChainImmature (random-zebra)

Pull request description:

  This introduces a little performance optimization, removing the double call to `GetDepthInMainChain` (ref: PIVX-Project#1281 (comment)).

  Note: in a successive PR we should review the LOCKs in this area of the wallet.

ACKs for top commit:
  furszy:
    utACK b32e418

Tree-SHA512: 69e16557dd67e0450b3b9a14a3a182be39bdfcec8ef5a49ca156d9511cd9a7a532c650ed8440b147795dc3d003d10f1c8c737d0990db6365cdada2eb66997892
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant