HomeThat World

graphql, internal/ethapi: support overriding accounts in eth_call (#19917)

Authored by gary rong <garyrong0905@gmail.com> on Aug 8 2019, 1:44 PM.

Description

graphql, internal/ethapi: support overriding accounts in eth_call (#19917)

  • graphql, internal/ethapi: extend eth_call

This PR offers the third option parameter for eth_call API.
Caller can specify a batch of contracts for overriding the
original account metadata(nonce, balance, code, state).
It has a few advantages:

  • It's friendly for debugging
  • It's can make on-chain contract lighter for getting rid of state access functions
  • core, internal: address comments

Details

Committed
Péter Szilágyi <peterke@gmail.com>Aug 8 2019, 1:44 PM
Parents
rGETH081642ed255f: Eip 1344 (ChainID opcode) (#19921)
Branches
Unknown
Tags
Unknown

Event Timeline

Péter Szilágyi <peterke@gmail.com> committed rGETHc9cdf144d55f: graphql, internal/ethapi: support overriding accounts in eth_call (#19917) (authored by gary rong <garyrong0905@gmail.com>).Aug 8 2019, 1:44 PM