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) {
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")
}