• 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.
    Unverified
    39f50232
Name
Last commit
Last update
..
downloader eth/downloader: fix possible data race by inconsistent field protection (#20690)
fetcher eth/fetcher: remove randomness from test data
filters eth/filters: remove use of event.TypeMux for pending logs (#20312)
gasprice cmd, core, eth, miner, params: configurable gas floor and ceil
tracers core/state/snapshot, tests: sync snap gen + snaps in consensus tests
api.go eth, internal/web3ext: add optional first and last arguments to the `admin_exportChain` RPC. (#20107)
api_backend.go internal/ethapi: don't set sender-balance to maxuint, fixes #16999 (#20783)
api_test.go core: initial version of state snapshots
api_tracer.go core: initial version of state snapshots
backend.go core/rawdb, core/state/snapshot: runtime snapshot generation
bloombits.go all: clean up and proerly abstract database access
config.go core/rawdb, core/state/snapshot: runtime snapshot generation
discovery.go cmd/geth: enable DNS discovery by default (#20660)
gen_config.go cmd/geth: enable DNS discovery by default (#20660)
handler.go eth: when triggering a sync, check the head header TD, not block
handler_test.go Merge pull request #20152 from karalabe/snapshot-5
helper_test.go core, eth: implement eth/65 transaction fetcher
peer.go eth: fix transaction announce/broadcast goroutine leak
protocol.go eth: rework tx fetcher to use O(1) ops + manage network requests
protocol_test.go eth: rework tx fetcher to use O(1) ops + manage network requests
sync.go eth: when triggering a sync, check the head header TD, not block
sync_test.go core, eth: implement eth/65 transaction fetcher