hardcode witness dump folder to /datadrive

This commit is contained in:
Jared Wasinger 2023-12-05 19:50:30 +08:00
parent 0f8fee3b8a
commit 1e81f97554

View file

@ -117,11 +117,8 @@ func NewWitness() *Witness {
} }
func DumpBlockWithWitnessToFile(w *Witness, b *types.Block) { func DumpBlockWithWitnessToFile(w *Witness, b *types.Block) {
enc := w.EncodeRLP(b) enc := w.EncodeRLP(b)
path, err := os.Getwd() path := "/datadrive/"
if err != nil { err := os.MkdirAll(fmt.Sprintf("%s/block-dump", path), 0755)
panic("shite")
}
err = os.MkdirAll(fmt.Sprintf("%s/block-dump", path), 0755)
if err != nil { if err != nil {
panic("shite2") panic("shite2")
} }