Skip to content

Commit dc874b1

Browse files
committed
fix: judgment is reversed
1 parent b4327a6 commit dc874b1

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
@@ -489,7 +489,7 @@ func (m *Miner) broadCastBlock(ctx context.Context, base MiningBase, bm *sharedT
489489
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)
490490

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

0 commit comments

Comments
 (0)