From 1e81f97554bb966a5df4e0f7deef434c28fa8309 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 5 Dec 2023 19:50:30 +0800 Subject: [PATCH] hardcode witness dump folder to /datadrive --- core/state/state_witness.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/state/state_witness.go b/core/state/state_witness.go index 80d0f8fc4c..30303c3558 100644 --- a/core/state/state_witness.go +++ b/core/state/state_witness.go @@ -117,11 +117,8 @@ func NewWitness() *Witness { } func DumpBlockWithWitnessToFile(w *Witness, b *types.Block) { enc := w.EncodeRLP(b) - path, err := os.Getwd() - if err != nil { - panic("shite") - } - err = os.MkdirAll(fmt.Sprintf("%s/block-dump", path), 0755) + path := "/datadrive/" + err := os.MkdirAll(fmt.Sprintf("%s/block-dump", path), 0755) if err != nil { panic("shite2") }