• Martin Holst Swende's avatar
    internal/ethapi: don't set sender-balance to maxuint, fixes #16999 (#20783) · 39f50232
    Martin Holst Swende authored
    Prior to this change, eth_call changed the balance of the sender account in the
    EVM environment to 2^256 wei to cover the gas cost of the call execution.
    We've had this behavior for a long time even though it's super confusing.
    
    This commit sets the default call gasprice to zero instead of updating the balance,
    which is better because it makes eth_call semantics less surprising. Removing
    the built-in balance assignment also makes balance overrides work as expected.
    39f50232
Name
Last commit
Last update
..
downloader Loading commit data...
fetcher Loading commit data...
filters Loading commit data...
gasprice Loading commit data...
tracers Loading commit data...
api.go Loading commit data...
api_backend.go Loading commit data...
api_test.go Loading commit data...
api_tracer.go Loading commit data...
backend.go Loading commit data...
bloombits.go Loading commit data...
config.go Loading commit data...
discovery.go Loading commit data...
gen_config.go Loading commit data...
handler.go Loading commit data...
handler_test.go Loading commit data...
helper_test.go Loading commit data...
peer.go Loading commit data...
protocol.go Loading commit data...
protocol_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...