Skip to content

Commit

Permalink
fix: judgment is reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Oct 23, 2023
1 parent f6e5574 commit 7effbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/multiminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func (m *Miner) broadCastBlock(ctx context.Context, base MiningBase, bm *sharedT
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)

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

0 comments on commit 7effbb6

Please sign in to comment.