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) {
|
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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue