Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Sep 13, 2024
1 parent f063345 commit b60bfb2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,11 +1204,8 @@ namespace pos {
uint32_t mintedBlocks{};
int64_t blockTime{};
int64_t subNodeBlockTime{};
<<<<<<< bush/block-time
unsigned int nBits{};
=======
bool ascendingEnabled{};
>>>>>>> master

{
LOCK(cs_main);
Expand All @@ -1226,14 +1223,11 @@ namespace pos {
}
subNodeBlockTime =
pcustomcsview->GetBlockTimes(operatorId, blockHeight, creationHeight, *timeLock)[subNode];
<<<<<<< bush/block-time
nBits = pos::GetNextWorkRequired(tip, blockTime, chainparams.GetConsensus());
=======
const auto attributes = pcustomcsview->GetAttributes();
CDataStructureV0 enabledKey{AttributeTypes::Param, ParamIDs::Feature, DFIPKeys::AscendingBlockTime};
ascendingEnabled =
attributes->GetValue(enabledKey, false) || gArgs.GetBoolArg("-ascendingstaketime", false);
>>>>>>> master
}

auto stakeModifier = pos::ComputeStakeModifier(tip->stakeModifier, args.minterKey.GetPubKey().GetID());
Expand Down

0 comments on commit b60bfb2

Please sign in to comment.