aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-07 20:17:48 +0800
committerobscuren <geffobscura@gmail.com>2015-01-07 20:17:48 +0800
commitfed3e6a808921fb8274b50043c5c39a24a1bbccf (patch)
treed632e95cfce78bd9a99a52bf7f30ee3ff980dfd3 /cmd/ethereum
parent032ab665299d75bffc25260e8fa477ace19db06a (diff)
downloadgo-tangerine-fed3e6a808921fb8274b50043c5c39a24a1bbccf.tar.gz
go-tangerine-fed3e6a808921fb8274b50043c5c39a24a1bbccf.tar.zst
go-tangerine-fed3e6a808921fb8274b50043c5c39a24a1bbccf.zip
Refactored ethutil.Config.Db out
Diffstat (limited to 'cmd/ethereum')
-rw-r--r--cmd/ethereum/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index 3243cc7fb..b816c678e 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -31,6 +31,7 @@ import (
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/state"
)
const (
@@ -103,7 +104,8 @@ func main() {
}
// Leave the Println. This needs clean output for piping
- fmt.Printf("%s\n", block.State().Dump())
+ statedb := state.New(block.Root(), ethereum.Db())
+ fmt.Printf("%s\n", statedb.Dump())
fmt.Println(block)