Call HandleFullyConfirmedBlock when ChainLocks are enabled but not enforced (#2844)
Otherwise IS locks never get removed before DIP8 activates via BIP9.
This commit is contained in:
parent
9fa09b974b
commit
b5bc7c9dac
@ -818,7 +818,10 @@ void CInstantSendManager::NotifyChainLock(const CBlockIndex* pindexChainLock)
|
|||||||
|
|
||||||
void CInstantSendManager::UpdatedBlockTip(const CBlockIndex* pindexNew)
|
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.
|
// Nothing to do here. We should keep all islocks and let chainlocks handle them.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user