Skip to content

Commit

Permalink
organizes Params() into its own constant variable inside CRewards::Co…
Browse files Browse the repository at this point in the history
…nnectBlock
  • Loading branch information
pedro-at-decenomy committed May 22, 2024
1 parent a3addf7 commit 69fa74c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rewards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ bool CRewards::IsDynamicRewardsEpochHeight(int nHeight)

bool CRewards::ConnectBlock(CBlockIndex* pindex, CAmount nSubsidy, CCoinsViewCache& coins)
{
auto& consensus = Params().GetConsensus();
auto& params = Params();
auto& consensus = params.GetConsensus();
const auto nHeight = pindex->nHeight;
const auto nEpochHeight = GetDynamicRewardsEpochHeight(nHeight);
std::ostringstream oss;
Expand Down

0 comments on commit 69fa74c

Please sign in to comment.