mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
hardcode witness dump folder to /datadrive
This commit is contained in:
parent
0f8fee3b8a
commit
1e81f97554
1 changed files with 2 additions and 5 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue