Propagate readOnly ion accountDbFromTag
This commit is contained in:
parent
51df75a296
commit
01fe9b7fb7
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue