aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-26 16:20:47 +0800
committerGitHub <noreply@github.com>2016-09-26 16:20:47 +0800
commit2e14aff80f294a34f6b28f0149b94fa7b9d3bf81 (patch)
tree17d1f3abefabfd7f8cb9149994a4788d2c0f08bc /eth
parente859f3696783ec75d9bb39c0c66eda3a88cea8c6 (diff)
parenta59a93f476434f2805c8fd3e10bf1b2f579b078f (diff)
downloaddexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar.gz
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar.bz2
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar.lz
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar.xz
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.tar.zst
dexon-2e14aff80f294a34f6b28f0149b94fa7b9d3bf81.zip
Merge pull request #3037 from karalabe/state-caching
State caching
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/api.go b/eth/api.go
index f4bce47b8..d6c0826ed 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -288,14 +288,14 @@ func NewPublicDebugAPI(eth *Ethereum) *PublicDebugAPI {
}
// DumpBlock retrieves the entire state of the database at a given block.
-func (api *PublicDebugAPI) DumpBlock(number uint64) (state.World, error) {
+func (api *PublicDebugAPI) DumpBlock(number uint64) (state.Dump, error) {
block := api.eth.BlockChain().GetBlockByNumber(number)
if block == nil {
- return state.World{}, fmt.Errorf("block #%d not found", number)
+ return state.Dump{}, fmt.Errorf("block #%d not found", number)
}
stateDb, err := state.New(block.Root(), api.eth.ChainDb())
if err != nil {
- return state.World{}, err
+ return state.Dump{}, err
}
return stateDb.RawDump(), nil
}