Merge pull request #3185 from filecoin-project/fix/chainwatch/fix-nil-smoothing-estimate

fix(chainwatch): Handle RewardState.EpochSmoothingEstimate == nil
This commit is contained in:
Łukasz Magiera
2020-08-20 11:20:58 +02:00
committed by GitHub
+3
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(),