From bf10de82df3b3f12fc9c44d74be2b4c0d3424306 Mon Sep 17 00:00:00 2001 From: Mike Greenberg Date: Thu, 20 Aug 2020 01:55:17 -0400 Subject: [PATCH] fix(chainwatch): Handle RewardState.EpochSmoothingEstimate == nil --- cmd/lotus-chainwatch/processor/reward.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/lotus-chainwatch/processor/reward.go b/cmd/lotus-chainwatch/processor/reward.go index 84aa1d990..d6f2ddad0 100644 --- a/cmd/lotus-chainwatch/processor/reward.go +++ b/cmd/lotus-chainwatch/processor/reward.go @@ -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(),