Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Dec 14, 2017

Removing two (heavy) GetTransaction calls by relying on GetUTXOCoin and height passed back from CheckCollateral. This way we should no longer be doing the same work twice here, and switching from full tx set to utxo only should also help to speed things up. Dropping IsInputAssociatedWithPubkey since it's no longer used anywhere after applying changes described above.

// Verify that sig time is legit, should be at least not earlier than the timestamp of the block
// at which collateral became nMasternodeMinimumConfirmations blocks deep.
// NOTE: this is not accurate because block timestamp is NOT guaranteed to be 100% correct one.
CBlockIndex* pRequredConfIndex = chainActive[nHeight + Params().GetConsensus().nMasternodeMinimumConfirmations - 1]; // block where tx got nMasternodeMinimumConfirmations
Copy link

@codablock codablock Dec 20, 2017

Choose a reason for hiding this comment

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

typo: pRequiredConfIndex

@codablock
Copy link

utACK (only small type found)

@gladcow
Copy link

gladcow commented Dec 20, 2017

utACK

@UdjinM6 UdjinM6 merged commit ebbd26a into dashpay:develop Dec 21, 2017
andvgal added a commit to energicryptocurrency/gen2-energi that referenced this pull request Oct 4, 2019
@UdjinM6 UdjinM6 deleted the dropIsIAWPK branch November 26, 2020 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants