Skip to content

Commit

Permalink
activeset could already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Sep 6, 2023
1 parent 50e3469 commit a5776b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/proposal_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (pb *ProposalBuilder) createProposal(
if err := activesets.Add(pb.cdb, ib.EpochData.ActiveSetHash, &types.EpochActiveSet{
Epoch: epoch,
Set: epochEligibility.ActiveSet,
}); err != nil {
}); err != nil && !errors.Is(err, sql.ErrObjectExists) {
return nil, err
}

Check warning on line 273 in miner/proposal_builder.go

View check run for this annotation

Codecov / codecov/patch

miner/proposal_builder.go#L272-L273

Added lines #L272 - L273 were not covered by tests
} else {
Expand Down

0 comments on commit a5776b6

Please sign in to comment.