• 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
..
checkpointoracle Loading commit data...
flowcontrol Loading commit data...
api.go Loading commit data...
api_backend.go Loading commit data...
api_test.go Loading commit data...
balance.go Loading commit data...
balance_test.go Loading commit data...
benchmark.go Loading commit data...
bloombits.go Loading commit data...
client.go Loading commit data...
client_handler.go Loading commit data...
clientpool.go Loading commit data...
clientpool_test.go Loading commit data...
commons.go Loading commit data...
costtracker.go Loading commit data...
distributor.go Loading commit data...
distributor_test.go Loading commit data...
enr_entry.go Loading commit data...
execqueue.go Loading commit data...
execqueue_test.go Loading commit data...
fetcher.go Loading commit data...
handler_test.go Loading commit data...
metrics.go Loading commit data...
odr.go Loading commit data...
odr_requests.go Loading commit data...
odr_test.go Loading commit data...
peer.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
randselect.go Loading commit data...
randselect_test.go Loading commit data...
request_test.go Loading commit data...
retrieve.go Loading commit data...
server.go Loading commit data...
server_handler.go Loading commit data...
serverpool.go Loading commit data...
servingqueue.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...
test_helper.go Loading commit data...
txrelay.go Loading commit data...
ulc.go Loading commit data...
ulc_test.go Loading commit data...