Remove redundant conversion
This commit is contained in:
parent
155457d47f
commit
64b96cd8f5
|
@ -12,7 +12,7 @@ import
|
||||||
../db/[db_chain, state_db], eth_common
|
../db/[db_chain, state_db], eth_common
|
||||||
|
|
||||||
proc headerFromTag(chain:BaseChainDB, blockTag: string): BlockHeader =
|
proc headerFromTag(chain:BaseChainDB, blockTag: string): BlockHeader =
|
||||||
let tag = blockTag.string.toLowerAscii
|
let tag = blockTag.toLowerAscii
|
||||||
case tag
|
case tag
|
||||||
of "latest": result = chain.getCanonicalHead()
|
of "latest": result = chain.getCanonicalHead()
|
||||||
of "earliest": result = chain.getCanonicalBlockHeaderByNumber(GENESIS_BLOCK_NUMBER)
|
of "earliest": result = chain.getCanonicalBlockHeaderByNumber(GENESIS_BLOCK_NUMBER)
|
||||||
|
|
Loading…
Reference in New Issue