fix(chainwatch): Handle RewardState.EpochSmoothingEstimate == nil

This commit is contained in:
Mike Greenberg 2020-08-20 01:55:17 -04:00
parent 885f357c59
commit bf10de82df

View File

@ -280,6 +280,9 @@ func (p *Processor) storeRewardSmoothingEstimates(rewards []rewardActorInfo) err
}
for _, rewardState := range rewards {
if rewardState.epochSmoothingEstimate == nil {
continue
}
if _, err := stmt.Exec(
rewardState.common.stateroot.String(),
rewardState.epochSmoothingEstimate.PositionEstimate.String(),