Skip to content

Commit

Permalink
Merge pull request #11321 from filecoin-project/asr/tweak-equivocation
Browse files Browse the repository at this point in the history
feat: miner: defensive check for equivocation
  • Loading branch information
arajasek authored Oct 11, 2023
2 parents 0787ff3 + 7778fc2 commit 2b36722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ func (m *Miner) mineOne(ctx context.Context, base *MiningBase) (minedBlock *type
}
}

if len(refreshedBaseBlocks) != len(base.TipSet.Blocks()) {
if len(refreshedBaseBlocks) != 0 && len(refreshedBaseBlocks) != len(base.TipSet.Blocks()) {
refreshedBase, err := types.NewTipSet(refreshedBaseBlocks)
if err != nil {
err = xerrors.Errorf("failed to create new tipset when refreshing: %w", err)
Expand Down

0 comments on commit 2b36722

Please sign in to comment.