Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 17, 2022

Fixes Assertion failed: lock cs_main not held in validation.cpp:5257; locks held: 'cs' in governance/governance.cpp:675

Followup to #4672

kudos @MrDefacto

@UdjinM6 UdjinM6 added this to the 18 milestone Feb 17, 2022
Comment on lines 675 to 679
bool fAllowScript{false};
{
LOCK(cs_main);
fAllowScript = (VersionBitsTipState(Params().GetConsensus(), Consensus::DEPLOYMENT_GOV_FEE) == ThresholdState::ACTIVE);
}
Copy link
Member

Choose a reason for hiding this comment

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

please use = WITH_LOCK(...

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 for squash merge

@UdjinM6 UdjinM6 merged commit 7acaa0a into dashpay:develop Feb 23, 2022
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Nov 13, 2023
* Fix "cs_main not held" in SyncObjects

* use WITH_LOCK
gades pushed a commit to piratecash/pirate that referenced this pull request Dec 9, 2023
* Fix "cs_main not held" in SyncObjects

* use WITH_LOCK
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.

2 participants