-
Notifications
You must be signed in to change notification settings - Fork 1.2k
instantsend: Ignore IS while reindexing/loading blocks from file, bail out early when IS is off #3985
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
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.
NACK de8192e
We really only call these functions from places where we already check if IS is enabled or not. Additionally, nothing about IS being disabled really prohibits these functions from doing their job. If anything, these checks just add additional overhead and should probably be avoided.
…ByInput and GetInstantSendLockByHash
|
My idea was to kind of guard the access to db with these checks (the overhead is tiny compared to db reads/writes I think) but it does look like we have it all covered in other places atm, even though it takes some jumping back and forth through the code to figure it out. Dropped most of them and only kept the one in |
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
…l out early when IS is off (dashpay#3985) * instantsend: Bail out early on disabled IS in more places * instantsend: Disable InstantSend while reindexing and importing blocks * Drop extra checks in GetInstantSendLockHashByTxid, GetInstantSendLockByInput and GetInstantSendLockByHash
Please see individual commits.
Extracted from #3970,
based on #3984 atm