Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Add function CMerkleTx::IsInMainChainImmature #1300

Merged

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
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.

None yet

2 participants