Skip to content

Conversation

@random-zebra
Copy link

@random-zebra random-zebra commented Jan 23, 2020

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

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

@random-zebra random-zebra added this to the 4.1.0 milestone Jan 23, 2020
@random-zebra random-zebra self-assigned this Jan 23, 2020
@random-zebra random-zebra force-pushed the 2020_IsInMainChainImmature branch 4 times, most recently from 734dadc to 0f26b48 Compare January 23, 2020 10:20
To avoid two consecutive calls to GetDepthInMainChain
@random-zebra random-zebra force-pushed the 2020_IsInMainChainImmature branch from 0f26b48 to b32e418 Compare January 23, 2020 13:46
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK b32e418

@furszy furszy requested a review from Fuzzbawls February 1, 2020 04:21
furszy added a commit that referenced this pull request Feb 4, 2020
b32e418 [Wallet] Add function CMerkleTx::IsInMainChainImmature (random-zebra)

Pull request description:

  This introduces a little performance optimization, removing the double call to `GetDepthInMainChain` (ref: #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
@furszy furszy merged commit b32e418 into PIVX-Project:master Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants