Propagate readOnly ion accountDbFromTag

This commit is contained in:
coffeepots 2018-12-05 19:10:05 +00:00
parent 51df75a296
commit 01fe9b7fb7
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ proc setupEthRpc*(node: EthereumNode, chain: BaseChainDB, rpcsrv: RpcServer) =
result = vmState.chaindb.getStateDb(vmState.blockHeader.hash, readOnly)
func accountDbFromTag(tag: string, readOnly = true): AccountStateDb =
result = getAccountDb(chain.headerFromTag(tag))
result = getAccountDb(chain.headerFromTag(tag), readOnly)
proc getBlockBody(hash: KeccakHash): BlockBody =
if not chain.getBlockBody(hash, result):