Skip to content

Commit

Permalink
simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Sep 10, 2024
1 parent e4399ad commit 3799e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ namespace pos {
pcustomcsview->GetBlockTimes(operatorId, blockHeight, creationHeight, *timeLock)[subNode];
const auto attributes = pcustomcsview->GetAttributes();
CDataStructureV0 enabledKey{AttributeTypes::Param, ParamIDs::Feature, DFIPKeys::AscendingBlockTime};
ascendingEnabled = attributes->GetValue(enabledKey, false);
ascendingEnabled = attributes->GetValue(enabledKey, false) || gArgs.GetBoolArg("-ascendingstaketime", false);
}

auto nBits = pos::GetNextWorkRequired(tip, blockTime, chainparams.GetConsensus());
Expand All @@ -1239,7 +1239,7 @@ namespace pos {
nLastCoinStakeSearchTime = tip->GetMedianTimePast() + 1;
}
} else {
if (gArgs.GetBoolArg("-ascendingstaketime", false) || ascendingEnabled) {
if (ascendingEnabled) {
// Set time to last block time. New blocks must be after the last block.
nLastCoinStakeSearchTime = tip->GetBlockTime();
} else {
Expand Down

0 comments on commit 3799e36

Please sign in to comment.