Merge pull request #2455 from zsfelfoldi/chaindb

core: improved chain db performance by using sequential keys
This commit is contained in:
Jeffrey Wilcke
2016-06-13 15:16:09 +02:00
committed by GitHub
24 changed files with 841 additions and 361 deletions

View File

@ -174,7 +174,7 @@ func dump(ctx *cli.Context) error {
for _, arg := range ctx.Args() {
var block *types.Block
if hashish(arg) {
block = chain.GetBlock(common.HexToHash(arg))
block = chain.GetBlockByHash(common.HexToHash(arg))
} else {
num, _ := strconv.Atoi(arg)
block = chain.GetBlockByNumber(uint64(num))