From 09c7d158d1180dc9ec042b67f8c1ecb1015a142e Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 22 Aug 2014 12:12:41 +0200 Subject: Error window --- ethereum/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethereum') diff --git a/ethereum/main.go b/ethereum/main.go index b7c8ea1e7..937a2b399 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -13,7 +13,7 @@ import ( const ( ClientIdentifier = "Ethereum(G)" - Version = "0.6.4" + Version = "0.6.5" ) var logger = ethlog.NewLogger("CLI") -- cgit v1.2.3 From 842f2cc8a06627a1de4fbdd1580fefe14be85a04 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 22 Aug 2014 12:14:37 +0200 Subject: Error window --- ethereum/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ethereum') diff --git a/ethereum/main.go b/ethereum/main.go index 937a2b399..9d07ab0d4 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -40,6 +40,11 @@ func main() { utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile) db := utils.NewDatabase() + err := utils.DBSanityCheck(db) + if err != nil { + logger.Errorln(err) + os.Exit(1) + } keyManager := utils.NewKeyManager(KeyStore, Datadir, db) -- cgit v1.2.3 From 5ac875b097a55c75a7e3da3443ef9fe64fc87846 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 22 Aug 2014 12:40:15 +0200 Subject: Set log level of std logger as well. (since gui logging is disabled) --- ethereum/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ethereum') diff --git a/ethereum/main.go b/ethereum/main.go index 9d07ab0d4..ab6ce18b2 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -43,6 +43,7 @@ func main() { err := utils.DBSanityCheck(db) if err != nil { logger.Errorln(err) + os.Exit(1) } -- cgit v1.2.3 From 723074e71bbe1638a5cec9b996b1eed07a76fd72 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 19 Sep 2014 13:32:52 +0200 Subject: dump --- ethereum/flags.go | 1 + ethereum/main.go | 2 ++ 2 files changed, 3 insertions(+) (limited to 'ethereum') diff --git a/ethereum/flags.go b/ethereum/flags.go index 5ed208411..c488e6314 100644 --- a/ethereum/flags.go +++ b/ethereum/flags.go @@ -74,6 +74,7 @@ func Init() { flag.IntVar(&LogLevel, "loglevel", int(ethlog.InfoLevel), "loglevel: 0-5: silent,error,warn,info,debug,debug detail)") flag.BoolVar(&DiffTool, "difftool", false, "creates output for diff'ing. Sets LogLevel=0") flag.StringVar(&DiffType, "diff", "all", "sets the level of diff output [vm, all]. Has no effect if difftool=false") + flag.BoolVar(&ShowGenesis, "genesis", false, "Dump the genesis block") flag.BoolVar(&Dump, "dump", false, "output the ethereum state in JSON format. Sub args [number, hash]") flag.StringVar(&DumpHash, "hash", "", "specify arg in hex") diff --git a/ethereum/main.go b/ethereum/main.go index ab6ce18b2..df9737c1f 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -76,6 +76,8 @@ func main() { os.Exit(1) } + fmt.Printf("RLP: %x\nstate: %x\nhash: %x\n", ethutil.Rlp(block), block.GetRoot(), block.Hash()) + // Leave the Println. This needs clean output for piping fmt.Printf("%s\n", block.State().Dump()) -- cgit v1.2.3