Skip to content

Commit

Permalink
fix: avoid panic when miner extractor does not find receipt (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
iand authored Oct 15, 2020
1 parent 84c8fb1 commit ef4c1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/actorstate/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (m StorageMinerExtractor) minerPosts(ctx context.Context, actor *ActorInfo,
if err != nil {
return err
}
if rcpt.ExitCode.IsError() {
if rcpt == nil || rcpt.ExitCode.IsError() {
return nil
}
params := miner.SubmitWindowedPoStParams{}
Expand Down

0 comments on commit ef4c1db

Please sign in to comment.