aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-11-19 18:55:38 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-11-19 19:03:33 +0800
commit1c63d08ed1ec52a250fdef98fdb8694cea685bf8 (patch)
tree96f785594b86850b53ce3a41181fd0af1b43dd3a /cmd/utils
parentae37a8013d5a348bdb21d4a66d5f462e0baf7cd8 (diff)
downloaddexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar.gz
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar.bz2
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar.lz
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar.xz
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.tar.zst
dexon-1c63d08ed1ec52a250fdef98fdb8694cea685bf8.zip
cmd/geth, cmd/utils: removed legalese
Removed the legalese confirmation dialog. This closes #1992
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/cmd.go10
-rw-r--r--cmd/utils/legalese.go41
2 files changed, 0 insertions, 51 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 9b75ccab4..5cbb58124 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -95,16 +95,6 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
return input, err
}
-func CheckLegalese(datadir string) {
- // check "first run"
- if !common.FileExist(datadir) {
- r, _ := PromptConfirm(legalese)
- if !r {
- Fatalf("Must accept to continue. Shutting down...\n")
- }
- }
-}
-
// Fatalf formats a message to standard error and exits the program.
// The message is also printed to standard output if standard error
// is redirected to a different file.
diff --git a/cmd/utils/legalese.go b/cmd/utils/legalese.go
deleted file mode 100644
index 09e687c17..000000000
--- a/cmd/utils/legalese.go
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of go-ethereum.
-//
-// go-ethereum is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// go-ethereum is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
-
-package utils
-
-const (
- legalese = `
-=======================================
-Disclaimer of Liabilites and Warranties
-=======================================
-
-THE USER EXPRESSLY KNOWS AND AGREES THAT THE USER IS USING THE ETHEREUM PLATFORM AT THE USER’S SOLE
-RISK. THE USER REPRESENTS THAT THE USER HAS AN ADEQUATE UNDERSTANDING OF THE RISKS, USAGE AND
-INTRICACIES OF CRYPTOGRAPHIC TOKENS AND BLOCKCHAIN-BASED OPEN SOURCE SOFTWARE, ETH PLATFORM AND ETH.
-THE USER ACKNOWLEDGES AND AGREES THAT, TO THE FULLEST EXTENT PERMITTED BY ANY APPLICABLE LAW, THE
-DISCLAIMERS OF LIABILITY CONTAINED HEREIN APPLY TO ANY AND ALL DAMAGES OR INJURY WHATSOEVER CAUSED
-BY OR RELATED TO RISKS OF, USE OF, OR INABILITY TO USE, ETH OR THE ETHEREUM PLATFORM UNDER ANY CAUSE
-OR ACTION WHATSOEVER OF ANY KIND IN ANY JURISDICTION, INCLUDING, WITHOUT LIMITATION, ACTIONS FOR
-BREACH OF WARRANTY, BREACH OF CONTRACT OR TORT (INCLUDING NEGLIGENCE) AND THAT NEITHER STIFTUNG
-ETHEREUM NOR ETHEREUM TEAM SHALL BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR
-CONSEQUENTIAL DAMAGES, INCLUDING FOR LOSS OF PROFITS, GOODWILL OR DATA. SOME JURISDICTIONS DO NOT
-ALLOW THE EXCLUSION OF CERTAIN WARRANTIES OR THE LIMITATION OR EXCLUSION OF LIABILITY FOR CERTAIN
-TYPES OF DAMAGES. THEREFORE, SOME OF THE ABOVE LIMITATIONS IN THIS SECTION MAY NOT APPLY TO A USER.
-IN PARTICULAR, NOTHING IN THESE TERMS SHALL AFFECT THE STATUTORY RIGHTS OF ANY USER OR EXCLUDE
-INJURY ARISING FROM ANY WILLFUL MISCONDUCT OR FRAUD OF STIFTUNG ETHEREUM.
-
-Do you accept this agreement?`
-)