Merge pull request #6620 from filecoin-project/asr/no-filter
Envvar to disable slash filter
This commit is contained in:
commit
f7f5fd4809
@ -6,6 +6,7 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -325,8 +326,10 @@ minerLoop:
|
|||||||
|
|
||||||
if err := m.sf.MinedBlock(b.Header, base.TipSet.Height()+base.NullRounds); err != nil {
|
if err := m.sf.MinedBlock(b.Header, base.TipSet.Height()+base.NullRounds); err != nil {
|
||||||
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)
|
log.Errorf("<!!> SLASH FILTER ERROR: %s", err)
|
||||||
|
if os.Getenv("LOTUS_MINER_NO_SLASHFILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
blkKey := fmt.Sprintf("%d", b.Header.Height)
|
blkKey := fmt.Sprintf("%d", b.Header.Height)
|
||||||
if _, ok := m.minedBlockHeights.Get(blkKey); ok {
|
if _, ok := m.minedBlockHeights.Get(blkKey); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user