From 2f8a2fc9073ee5b480c5e2e515151fe8c4ec2de9 Mon Sep 17 00:00:00 2001 From: Mike Greenberg <305332+placer14@users.noreply.github.com> Date: Thu, 30 Sep 2021 09:06:55 -0400 Subject: [PATCH] fix: Update lotusminer default paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ɓukasz Magiera --- cmd/lotus-miner/main.go | 4 ++-- cmd/lotus-seal-worker/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-miner/main.go b/cmd/lotus-miner/main.go index b7800013c..110748f48 100644 --- a/cmd/lotus-miner/main.go +++ b/cmd/lotus-miner/main.go @@ -117,7 +117,7 @@ func main() { Name: "panic-reports", EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"}, Hidden: true, - Value: "~/.lotus", // should follow --repo default + Value: "~/.lotusminer", // should follow --repo default }, &cli.StringFlag{ Name: "repo", @@ -155,7 +155,7 @@ func main() { After: func(c *cli.Context) error { if r := recover(); r != nil { // Generate report in LOTUS_PATH and re-raise panic - build.GeneratePanicReport(c.String("panic-reports"), c.String("repo"), c.App.Name) + build.GeneratePanicReport(c.String("panic-reports"), c.String(FlagMinerRepo), c.App.Name) panic(r) } return nil diff --git a/cmd/lotus-seal-worker/main.go b/cmd/lotus-seal-worker/main.go index da557ad61..884c3440d 100644 --- a/cmd/lotus-seal-worker/main.go +++ b/cmd/lotus-seal-worker/main.go @@ -79,7 +79,7 @@ func main() { Name: "panic-reports", EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"}, Hidden: true, - Value: "~/.lotus", // should follow --repo default + Value: "~/.lotusworker", // should follow --repo default }, &cli.StringFlag{ Name: "miner-repo",