aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum/main.go')
-rw-r--r--ethereum/main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/ethereum/main.go b/ethereum/main.go
index b7c8ea1e7..df9737c1f 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")
@@ -40,6 +40,12 @@ 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)
@@ -70,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())