Skip to content

Commit

Permalink
Adjust early sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Mar 28, 2023
1 parent 9854c16 commit f875cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/legacy/stakemodifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool GetOldStakeModifier(CStakeInput* stake, uint64_t& nStakeModifier)
}
return false;

} else if (!GetOldModifier(pindexFrom, nStakeModifier))
} else if (!GetOldModifier(pindexFrom, nStakeModifier) && pindexFrom->nTime >= Params().GetConsensus().nDogeCashBadBlockTime)
return error("%s : failed to get kernel stake modifier", __func__);

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2954,7 +2954,7 @@ bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIn
}

// Enforce block.nVersion=2 rule that the coinbase starts with serialized block height
if (pindexPrev) { // pindexPrev is only null on the first block which is a version 1 block.
if (pindexPrev && pindexPrev->nTime >= Params().GetConsensus().nDogeCashBadBlockTime) { // pindexPrev is only null on the first block which is a version 1 block.
CScript expect = CScript() << nHeight;
if (block.vtx[0]->vin[0].scriptSig.size() < expect.size() ||
!std::equal(expect.begin(), expect.end(), block.vtx[0]->vin[0].scriptSig.begin())) {
Expand Down

0 comments on commit f875cd1

Please sign in to comment.