aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 6acdff9ad..8099d4dc6 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -346,6 +346,7 @@ func main() {
func run(ctx *cli.Context) {
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
+ utils.CheckLegalese(cfg.DataDir)
ethereum, err := eth.New(cfg)
if err != nil {
utils.Fatalf("%v", err)
@@ -404,6 +405,7 @@ func console(ctx *cli.Context) {
}
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
+ utils.CheckLegalese(cfg.DataDir)
ethereum, err := eth.New(cfg)
if err != nil {
utils.Fatalf("%v", err)
@@ -434,6 +436,7 @@ func console(ctx *cli.Context) {
func execJSFiles(ctx *cli.Context) {
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
+ utils.CheckLegalese(cfg.DataDir)
ethereum, err := eth.New(cfg)
if err != nil {
utils.Fatalf("%v", err)
@@ -487,6 +490,8 @@ func blockRecovery(ctx *cli.Context) {
}
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
+ utils.CheckLegalese(cfg.DataDir)
+
blockDb, err := ethdb.NewLDBDatabase(filepath.Join(cfg.DataDir, "blockchain"))
if err != nil {
glog.Fatalln("could not open db:", err)