Reconsider before sapling activation

This commit is contained in:
jl777
2018-12-15 08:27:57 -11:00
parent 4bb4b49593
commit d8657dcd17

View File

@@ -4920,7 +4920,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
*ppindex = pindex;
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )
{
if ( ASSETCHAINS_CC == 0 && pindex->GetHeight() != Params().GetConsensus().vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight )
if ( ASSETCHAINS_CC == 0 && KOMODO_INSYNC > Params().GetConsensus().vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight )
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
else
{