From b8866f1d16f2baa7852983361d5ba7d080e36687 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Mon, 28 Jun 2021 22:00:21 -0400 Subject: [PATCH 1/3] Envvar to disable slash filter --- miner/miner.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miner/miner.go b/miner/miner.go index ee7d40c4fd3..9d91ee132c4 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -6,6 +6,7 @@ import ( "crypto/rand" "encoding/binary" "fmt" + "os" "sync" "time" @@ -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_FILTER") != "_yes_" { + continue + } } blkKey := fmt.Sprintf("%d", b.Header.Height) From 3091e2a771c2f21aa038c6b0be2bdd9ed2419e94 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Wed, 30 Jun 2021 12:15:43 -0400 Subject: [PATCH 2/3] Update miner/miner.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ɓukasz Magiera --- miner/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/miner.go b/miner/miner.go index 9d91ee132c4..5ec3979cfc1 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -326,7 +326,7 @@ minerLoop: if err := m.sf.MinedBlock(b.Header, base.TipSet.Height()+base.NullRounds); err != nil { log.Errorf(" SLASH FILTER ERROR: %s", err) - if os.Getenv("LOTUS_MINER_NO_FILTER") != "_yes_" { + if os.Getenv("LOTUS_MINER_NO_FILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" { continue } } From dff097a99235aa0196f8d3629d630fb02702cb81 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Fri, 9 Jul 2021 17:07:23 -0400 Subject: [PATCH 3/3] Update miner/miner.go Co-authored-by: Peter Rabbitson --- miner/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/miner.go b/miner/miner.go index 5ec3979cfc1..1727f69420b 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -326,7 +326,7 @@ minerLoop: if err := m.sf.MinedBlock(b.Header, base.TipSet.Height()+base.NullRounds); err != nil { log.Errorf(" SLASH FILTER ERROR: %s", err) - if os.Getenv("LOTUS_MINER_NO_FILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" { + if os.Getenv("LOTUS_MINER_NO_SLASHFILTER") != "_yes_i_know_i_can_and_probably_will_lose_all_my_fil_and_power_" { continue } }