Skip to content

Commit

Permalink
Merge pull request #2054 from jamescowens/fix_accrual_renewal_walker
Browse files Browse the repository at this point in the history
beacon: Fix a subtle error in renewal chain walker
  • Loading branch information
jamescowens authored Mar 18, 2021
2 parents 8429279 + df3b201 commit fe7a502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gridcoin/tally.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ CAmount Tally::GetNewbieSuperblockAccrualCorrection(const Cpid& cpid, const Supe
// than here.
while (beacon_ptr->Renewed())
{
beacon_ptr = std::make_shared<Beacon>(beacons.GetBeaconDB().find(beacon->m_prev_beacon_hash)->second);
beacon_ptr = std::make_shared<Beacon>(beacons.GetBeaconDB().find(beacon_ptr->m_prev_beacon_hash)->second);
}

const CBlockIndex* pindex_baseline = GRC::Tally::GetBaseline();
Expand Down

0 comments on commit fe7a502

Please sign in to comment.