Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | if (pindexPrev == nullptr) { | ||||
return false; | return false; | ||||
} | } | ||||
return pindexPrev->GetMedianTimePast() >= | return pindexPrev->GetMedianTimePast() >= | ||||
gArgs.GetArg( | gArgs.GetArg( | ||||
"-greatwallactivationtime", | "-greatwallactivationtime", | ||||
config.GetChainParams().GetConsensus().greatWallActivationTime); | config.GetChainParams().GetConsensus().greatWallActivationTime); | ||||
} | } | ||||
bool IsGravitonEnabled(const Config &config, const CBlockIndex *pindexPrev) { | |||||
if (pindexPrev == nullptr) { | |||||
return false; | |||||
} | |||||
return pindexPrev->GetMedianTimePast() >= | |||||
gArgs.GetArg( | |||||
"-gravitonactivationtime", | |||||
config.GetChainParams().GetConsensus().gravitonActivationTime); | |||||
} |