Skip to content

Conversation

@xdustinface
Copy link

No description provided.

@xdustinface xdustinface added this to the 17 milestone Feb 1, 2021
@UdjinM6
Copy link

UdjinM6 commented Feb 3, 2021

cc1b476 really made me think if it actually makes any sense to have both (!bestChainLock.IsNull() && clsig.nHeight <= bestChainLock.nHeight) and InternalHasConflictingChainLock here at all (#3978 is a side effect of that 🙂 ) cause it seems like InternalHasConflictingChainLock will always be false in this combination, no?

@UdjinM6
Copy link

UdjinM6 commented Feb 8, 2021

Ping 👀 Any thoughts on dropping InternalHasConflictingChainLock part instead of cc1b476?

@xdustinface xdustinface force-pushed the pr-llmq-refactor-processnewchainlock branch from b6a37e3 to 75ede8a Compare February 9, 2021 22:49
@xdustinface
Copy link
Author

@UdjinM6 Sorry for the late reply, i was just too deep into other stuff the last week and i just didn't find time in my mind to think about this and #3978 🙈 But i agree, it makes sense to drop it 👍 Added a51875f instead of cc1b476!

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

@PastaPastaPasta
Copy link
Member

Can you explain a51875f more? why are we dropping that?

@xdustinface
Copy link
Author

why are we dropping that?

See #3976 (comment)

if (nHeight > bestChainLockBlockIndex->nHeight) {
will always trigger in this case because we already make sure before that its higher than best chainlock height
if (!bestChainLock.IsNull() && clsig.nHeight <= bestChainLock.nHeight) {

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@PastaPastaPasta PastaPastaPasta merged commit 6ec8b9a into dashpay:develop Feb 14, 2021
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Apr 1, 2022
…shpay#3976)

* llmq: Drop InternalHasConflictingChainLock in ProcessNewChainLock

* llmq: Directly use clsig.blockHash instead of copying it into msgHash

* llmq: Reuse CInv(MSG_CLSIG, hash)

* llmq: Add const in two places
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