erigon-pulse/node/nodecfg/datadir/dirs.go

24 lines
427 B
Go

package datadir
import (
"path/filepath"
)
type Dirs struct {
DataDir string
Chaindata string
Tmp string
Snap string
TxPool string
}
func New(datadir string) Dirs {
return Dirs{
DataDir: datadir,
Chaindata: filepath.Join(datadir, "chaindata"),
Tmp: filepath.Join(datadir, "etl-temp"),
Snap: filepath.Join(datadir, "snapshots"),
TxPool: filepath.Join(datadir, "txpool"),
}
}