Overwinter+sapling consensus rules do not apply to height=0
This commit is contained in:
@@ -1220,8 +1220,8 @@ bool ContextualCheckTransaction(int32_t slowflag,const CBlock *block, CBlockInde
|
|||||||
const int dosLevel,
|
const int dosLevel,
|
||||||
bool (*isInitBlockDownload)(),int32_t validateprices)
|
bool (*isInitBlockDownload)(),int32_t validateprices)
|
||||||
{
|
{
|
||||||
const bool overwinterActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER);
|
const bool overwinterActive = nHeight >=1 ? true : false; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER);
|
||||||
const bool saplingActive = true; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING);
|
const bool saplingActive = nHeight >=1 ? true : false; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING);
|
||||||
const bool isSprout = false; //!overwinterActive;
|
const bool isSprout = false; //!overwinterActive;
|
||||||
|
|
||||||
// If Sprout rules apply, reject transactions which are intended for Overwinter and beyond
|
// If Sprout rules apply, reject transactions which are intended for Overwinter and beyond
|
||||||
|
|||||||
Reference in New Issue
Block a user