Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 6, 2021

Please see individual commits.

Extracted from #3970, based on #3984 atm

@UdjinM6 UdjinM6 added this to the 17 milestone Feb 11, 2021
@UdjinM6 UdjinM6 marked this pull request as ready for review February 15, 2021 10:12
xdustinface
xdustinface previously approved these changes Feb 16, 2021
Copy link

@xdustinface xdustinface left a comment

Choose a reason for hiding this comment

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

utACK

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.

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.

@UdjinM6
Copy link
Author

UdjinM6 commented Feb 17, 2021

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 HandleFullyConfirmedBlock for now.

Copy link

@xdustinface xdustinface left a comment

Choose a reason for hiding this comment

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

utACK

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 44e9ba5 into dashpay:develop Feb 20, 2021
@UdjinM6 UdjinM6 deleted the is_optim_3 branch July 1, 2021 21:58
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 13, 2022
…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
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