Skip to content

Commit

Permalink
Call HandleFullyConfirmedBlock when ChainLocks are enabled but not en…
Browse files Browse the repository at this point in the history
…forced (#2844)

Otherwise IS locks never get removed before DIP8 activates via BIP9.
  • Loading branch information
codablock authored and UdjinM6 committed Apr 8, 2019
1 parent 9fa09b9 commit b5bc7c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/llmq/quorums_instantsend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,10 @@ void CInstantSendManager::NotifyChainLock(const CBlockIndex* pindexChainLock)

void CInstantSendManager::UpdatedBlockTip(const CBlockIndex* pindexNew)
{
if (sporkManager.IsSporkActive(SPORK_19_CHAINLOCKS_ENABLED)) {
// TODO remove this after DIP8 has activated
bool fDIP0008Active = VersionBitsState(pindexNew->pprev, Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0008, versionbitscache) == THRESHOLD_ACTIVE;

if (sporkManager.IsSporkActive(SPORK_19_CHAINLOCKS_ENABLED) && fDIP0008Active) {
// Nothing to do here. We should keep all islocks and let chainlocks handle them.
return;
}
Expand Down

0 comments on commit b5bc7c9

Please sign in to comment.