Skip to content

Commit

Permalink
Merge pull request #6620 from filecoin-project/asr/no-filter
Browse files Browse the repository at this point in the history
Envvar to disable slash filter
  • Loading branch information
arajasek authored Jul 9, 2021
2 parents 77a1a8a + dff097a commit f7f5fd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"crypto/rand"
"encoding/binary"
"fmt"
"os"
"sync"
"time"

Expand Down Expand Up @@ -325,7 +326,9 @@ minerLoop:

if err := m.sf.MinedBlock(b.Header, base.TipSet.Height()+base.NullRounds); err != nil {
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)
continue
if os.Getenv("LOTUS_MINER_NO_SLASHFILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" {
continue
}
}

blkKey := fmt.Sprintf("%d", b.Header.Height)
Expand Down

0 comments on commit f7f5fd4

Please sign in to comment.