Merge pull request #2455 from zsfelfoldi/chaindb
core: improved chain db performance by using sequential keys
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user