8bda81496a
`estimateGas` used by JSON-RPC is another way to setup and call the EVM, also used by GraphQL. Move it to `transaction/call_evm`. This function has too much direct knowledge of details that shouldn't be used outside transaction handling code, details we need to change when changing the db and transaction memory layer. Moving this one exposed quite a bit of abstraction leakage, as it calls directly to the hexary trie db around `processTransaction`. It looks like the _intended_ functionality of `estimateGas` is similar to `rpcDoCall` with the only real difference being to not store the final state. It looks like the extra stuff in `estimateGas` compared with `doCall` is a messy workaround for computation not exposing the right API ("don't save final state") for RPC to use. Signed-off-by: Jamie Lokier <jamie@shareable.org> |
||
---|---|---|
.. | ||
common.nim | ||
debug.nim | ||
hexstrings.nim | ||
key_storage.nim | ||
p2p.nim | ||
rpc_types.nim | ||
rpc_utils.nim | ||
whisper.nim |