go-ethereum/core
Hao Duan 28baf9f1fd core: avoid modification of accountSet cache in tx_pool (#21159)
* core: avoid modification of accountSet cache in tx_pool

when runReorg, we may copy the dirtyAccounts' accountSet cache to promoteAddrs
in which accounts will be promoted, however, if we have reset request at the
same time, we may reuse promoteAddrs and modify the cache content which is
against the original intention of accountSet cache. So, we need to make a new
slice here to avoid modify accountSet cache.

* core: fix flatten condition + comment

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-13 22:07:04 +08:00
..
asm eth/tracers/js: fix isPush for push0 (#28520) 2024-03-07 22:31:19 +08:00
bloombits fix: replace all time.after with the time.newtimer (#400) 2024-01-27 21:01:24 +11:00
rawdb new EVM Upgrade 2021-09-21 16:53:46 +05:30
state core: kill off managed state, use own tiny noncer for txpool (#19810) 2024-05-10 19:48:10 +08:00
types core: types: less allocations when hashing and tx handling (#21265) 2024-05-13 22:07:03 +08:00
vm all: implement EIP-2929 (gas cost increases for state access opcodes) (#21509) 2024-04-22 21:14:54 +08:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go Revert "core, light, params: implement eip2028 (#19931)" 2024-05-11 06:11:46 +08:00
block_validator.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
block_validator_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
blockchain.go core, eth, trie: use common/prque (#17508) 2024-05-09 18:38:27 +08:00
blockchain_test.go core: fix typos in comments (#21118) 2024-05-13 22:07:03 +08:00
blocks.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
chain_indexer.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
chain_indexer_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
chain_makers.go update gas fee 2023-10-16 11:24:47 +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, filters: not set log.BlockHash 2024-04-20 16:27:21 +08:00
database_util_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
error.go hot fix 2018-11-22 15:49:29 +05:30
events.go all: change TxPreEvent to TxsPreEvent (#16720) 2024-03-28 11:16:21 +08:00
evm.go implement EIP-4399, PREVRANDAO opcode. 2024-03-04 00:32:14 +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 Multi config bug fix (#216) 2022-12-17 20:23:46 +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 internal/ethapi: support block number or hash on state-related methods (#19491) 2024-03-12 10:40:03 +08:00
helper_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
lending_pool.go core: expose various counter metrics for grafana (#19692) 2024-05-10 19:48:10 +08:00
lending_pool_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
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 core: expose various counter metrics for grafana (#19692) 2024-05-10 19:48:10 +08:00
order_pool_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
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 all: implement EIP-2929 (gas cost increases for state access opcodes) (#21509) 2024-04-22 21:14:54 +08:00
state_transition.go Revert "core, light, params: implement eip2028 (#19931)" 2024-05-11 06:11:46 +08:00
token_validator.go Disable on xdcx receiver part (#521) 2024-04-19 22:17:22 +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: transaction pool optimizations (#21328) 2024-05-13 22:07:03 +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 core: avoid modification of accountSet cache in tx_pool (#21159) 2024-05-13 22:07:04 +08:00
tx_pool_test.go core: fix queued transaction eviction #21300 2024-05-13 22:07:04 +08:00
types.go new EVM Upgrade 2021-09-21 16:53:46 +05:30