go-ethereum/core
Martin Holst Swende b5fe81f093 core/vm: make gas cost reporting to tracers correct (#22702)
Previously, the makeCallVariantGasCallEIP2929 charged the cold account access cost directly, leading to an incorrect gas cost passed to the tracer from the main execution loop.
This change still temporarily charges the cost (to allow for an accurate calculation of the available gas for the call), but then afterwards refunds it and instead returns the correct total gas cost to be then properly charged in the main loop.
2024-11-01 11:36:52 +08:00
..
asm all: change format 0x%x to %#x (#25221) 2024-09-27 15:24:31 +08:00
bloombits fix: replace all time.after with the time.newtimer (#400) 2024-01-27 21:01:24 +11:00
rawdb all: replace uses of ioutil with io and os (#24869) 2024-09-27 15:14:17 +08:00
state all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
types core/types: drop type v4StoredReceiptRLP 2024-11-01 11:36:52 +08:00
vm core/vm: make gas cost reporting to tracers correct (#22702) 2024-11-01 11:36:52 +08:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go all: use unified emptyRootHash and emptyCodeHash (#26718) 2024-10-21 17:55:16 +08:00
block_validator.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
block_validator_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
blockchain.go core/types: replace core.SetReceiptsData with receipts.DeriveFields 2024-11-01 11:36:52 +08:00
blockchain_test.go all: fix staticcheck warning SA2002: must call T.Fatalf in same goroutine 2024-10-31 10:38:38 +08:00
blocks.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
chain_indexer.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
chain_indexer_test.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
chain_makers.go all: removed blockhash from statedb (#23126) 2024-10-18 09:24:52 +08:00
chain_makers_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
dao_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
database_util.go core: fix wrong blockHash for eth_getLogs (#650) 2024-10-16 11:00:58 +08:00
database_util_test.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
error.go core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (#23853) 2024-08-26 09:04:15 +08:00
events.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2024-08-03 10:03:22 +08:00
evm.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
gen_genesis_account.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
genesis.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
genesis_alloc.go xin-203 fix wrong config hash and update v2 params on mainnet (#109) 2022-07-12 16:56:55 +02:00
genesis_test.go xin-203 fix wrong config hash and update v2 params on mainnet (#109) 2022-07-12 16:56:55 +02:00
headerchain.go core, cmd: add generic LRU implementation (#26162) 2024-08-26 11:17:23 +08:00
helper_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
lending_pool.go core, XDCxlending/lendingstate: fix staticcheck warning S1002: omit comparison to bool constant 2024-10-30 21:02:41 +08:00
lending_pool_test.go core: fix staticcheck warning S1006: use for {} for infinite loops 2024-10-31 16:49:56 +08:00
lending_tx_journal.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
lending_tx_list.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
mkalloc.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
order_pool.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
order_pool_test.go core, XDCxlending/lendingstate: fix staticcheck warning SA5001: must check error before rpcClient.Close() 2024-10-31 10:28:21 +08:00
order_tx_journal.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
order_tx_list.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
state_processor.go core: fix staticcheck warning SA6005: should use strings.EqualFold 2024-10-30 21:13:58 +08:00
state_transition.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
token_validator.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
tx_cacher.go core: concurrent background transaction sender ecrecover (#16882) 2024-05-09 18:38:27 +08:00
tx_journal.go all: change TxPreEvent to TxsPreEvent (#16720) 2024-03-28 11:16:21 +08:00
tx_list.go core: fix race conditions in txpool (#23474) 2024-08-24 23:12:32 +08:00
tx_list_test.go core: types: less allocations when hashing and tx handling (#21265) 2024-05-13 22:07:03 +08:00
tx_noncer.go core: fix write concurrency in txpool (#19835) 2024-05-10 19:48:10 +08:00
tx_pool.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
tx_pool_test.go core: fix race conditions in txpool (#23474) 2024-08-24 23:12:32 +08:00
types.go new EVM Upgrade 2021-09-21 16:53:46 +05:30