mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 02:24:29 +00:00
24 lines
427 B
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"),
|
|
}
|
|
}
|