Skip to content

Commit 84ea2e4

Browse files
committed
fix: conflict
1 parent 7effbb6 commit 84ea2e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

miner/multiminer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func (m *Miner) broadCastBlock(ctx context.Context, base MiningBase, bm *sharedT
550550

551551
if !(errors.Is(err, slashfilter.ParentGrindingFaults) &&
552552
os.Getenv("SOPHON_MINER_NO_SLASHFILTER") != "_yes_i_know_and_i_accept_that_may_loss_my_fil") {
553-
if err = m.sf.PutBlock(ctx, bm.Header, base.TipSet.Height()+base.NullRounds, time.Time{}, slashfilter.Error); err != nil {
553+
if err = m.sf.PutBlock(ctx, bm.Header, base.TipSet.Height()+base.NullRounds, time.Time{}, types.Error); err != nil {
554554
log.Errorf("failed to put block: %s", err)
555555
}
556556

node/modules/slashfilter/local.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (f *localSlashFilter) ListBlock(ctx context.Context, params *types.BlocksQu
108108
return nil, fmt.Errorf("you are using levelDB, List Block is not supported")
109109
}
110110

111-
func checkFault(ctx context.Context, t datastore.Datastore, key datastore.Key, bh *vtypes.BlockHeader, faultType string) error {
111+
func checkFault(ctx context.Context, t datastore.Datastore, key datastore.Key, bh *vtypes.BlockHeader, faultType error) error {
112112
fault, err := t.Has(ctx, key)
113113
if err != nil {
114114
return err

0 commit comments

Comments
 (0)