-
Notifications
You must be signed in to change notification settings - Fork 1.2k
instantsend: Introduce KnownInstantSendLock, optimize ProcessInstantSendLock a bit #3984
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
Conversation
Check islock hash against both current and archived islocks
19cdc09 to
36cd94a
Compare
… first Two reasons: 1. GetTransaction is a potentially much heavier one 2. Doesn't make much sense to look for a tx if we have a known islock already
xdustinface
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but see comment below for one nit.
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
xdustinface
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
xdustinface
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…endLock a bit (dashpay#3984) * instantsend: Introduce (and use) KnownInstantSendLock Check islock hash against both current and archived islocks * instantsend: Optimize ProcessInstantSendLock, check for known islocks first Two reasons: 1. GetTransaction is a potentially much heavier one 2. Doesn't make much sense to look for a tx if we have a known islock already * Drop extra pendingInstantSendLocks.count(hash) * Check pindexMined != nullptr * Update src/llmq/quorums_instantsend.cpp Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com> * Update src/llmq/quorums_instantsend.h Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com> Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Please see individual commits.
Extracted from #3970,
based on #3983 atm