Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/activation.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | bool IsGravitonEnabled(const Consensus::Params ¶ms, | ||||
if (pindexPrev == nullptr) { | if (pindexPrev == nullptr) { | ||||
return false; | return false; | ||||
} | } | ||||
return pindexPrev->GetMedianTimePast() >= | return pindexPrev->GetMedianTimePast() >= | ||||
gArgs.GetArg("-gravitonactivationtime", | gArgs.GetArg("-gravitonactivationtime", | ||||
params.gravitonActivationTime); | params.gravitonActivationTime); | ||||
} | } | ||||
bool IsPhononEnabled(const Consensus::Params ¶ms, | |||||
const CBlockIndex *pindexPrev) { | |||||
if (pindexPrev == nullptr) { | |||||
return false; | |||||
} | |||||
return pindexPrev->GetMedianTimePast() >= | |||||
gArgs.GetArg("-phononactivationtime", params.phononActivationTime); | |||||
} |