Skip to content

Commit

Permalink
reward: Add debug log for preloadedInfo hit
Browse files Browse the repository at this point in the history
  • Loading branch information
blukat29 committed Jul 10, 2024
1 parent e51c56f commit c1e0bcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reward/staking_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ func getStakingInfoFromCache(blockNum uint64) *StakingInfo {

if info, ok := stakingManager.preloadedInfo.Get(blockNum); ok {
info := info.(*StakingInfo)
logger.Debug("preloadedInfo hit.", "staking block number", blockNum, "stakingInfo", info)
// Fill in Gini coeff if not set. Modifies the cached object.
if err := fillMissingGiniCoefficient(info, blockNum); err != nil {
logger.Warn("Cannot fill in gini coefficient", "staking block number", blockNum, "err", err)
Expand Down

0 comments on commit c1e0bcd

Please sign in to comment.