Remove redundant conversion

This commit is contained in:
coffeepots 2018-08-03 17:16:10 +01:00 committed by zah
parent 155457d47f
commit 64b96cd8f5
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import
../db/[db_chain, state_db], eth_common
proc headerFromTag(chain:BaseChainDB, blockTag: string): BlockHeader =
let tag = blockTag.string.toLowerAscii
let tag = blockTag.toLowerAscii
case tag
of "latest": result = chain.getCanonicalHead()
of "earliest": result = chain.getCanonicalBlockHeaderByNumber(GENESIS_BLOCK_NUMBER)