aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2019-06-24 22:16:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-06-24 22:16:44 +0800
commit1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5 (patch)
tree5b37b2225f4ac75c5468d7a29b045b62204fb9f0 /eth
parente4a1488b2f9b0d8dbe51f8eda067374985d8b188 (diff)
downloadgo-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar.gz
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar.bz2
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar.lz
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar.xz
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.tar.zst
go-tangerine-1da5e0ebb0bf702f1e4d811b9dab9b3f4589e9e5.zip
core/state, cmd/geth: streaming json output for dump command (#15475)
* core/state, cmd/geth: streaming json output dump cmd + optional code+storage * dump: add option to continue even if preimages are missing * core, evm: lint nits * cmd: use local flags for dump, omit empty code/storage * core/state: fix state dump test
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api.go b/eth/api.go
index bdbbd1ba3..8afa21a38 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -266,7 +266,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
// both the pending block as well as the pending state from
// the miner and operate on those
_, stateDb := api.eth.miner.Pending()
- return stateDb.RawDump(), nil
+ return stateDb.RawDump(false, false, true), nil
}
var block *types.Block
if blockNr == rpc.LatestBlockNumber {
@@ -281,7 +281,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
if err != nil {
return state.Dump{}, err
}
- return stateDb.RawDump(), nil
+ return stateDb.RawDump(false, false, true), nil
}
// PrivateDebugAPI is the collection of Ethereum full node APIs exposed over