Skip to content

Commit 7effbb6

Browse files
committed
fix: judgment is reversed
1 parent f6e5574 commit 7effbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/multiminer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ func (m *Miner) broadCastBlock(ctx context.Context, base MiningBase, bm *sharedT
549549
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)
550550

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

0 commit comments

Comments
 (0)