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