go-ethereum/internal/ethapi
rjl493456442 ac50181b74
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Docker Image (push) Waiting to run
core: consolidate BlockChain constructor options (#31925)
In this pull request, the original `CacheConfig` has been renamed to `BlockChainConfig`.

Over time, more fields have been added to `CacheConfig` to support
blockchain configuration. Such as `ChainHistoryMode`, which clearly extends
beyond just caching concerns.

Additionally, adding new parameters to the blockchain constructor has
become increasingly complicated, since it’s initialized across multiple
places in the codebase. A natural solution is to consolidate these arguments 
into a dedicated configuration struct.

As a result, the existing `CacheConfig` has been redefined as `BlockChainConfig`.
Some parameters, such as `VmConfig`, `TxLookupLimit`, and `ChainOverrides`
have been moved into `BlockChainConfig`. Besides, a few fields in `BlockChainConfig`
were renamed, specifically:

- `TrieCleanNoPrefetch` -> `NoPrefetch`
- `TrieDirtyDisabled` -> `ArchiveMode`

Notably, this change won't affect the command line flags or the toml
configuration file. It's just an internal refactoring and fully backward-compatible.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2025-06-19 12:21:15 +02:00
..
override internal/ethapi: support for beacon root and withdrawals in simulate api (#31304) 2025-03-24 19:08:53 +01:00
testdata eth/filters: add timestamp to derived logs (#31887) 2025-06-10 11:52:02 +02:00
addrlock.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
api.go core: reduce load on txindexer from API (#31752) 2025-05-05 10:07:55 +08:00
api_test.go core: consolidate BlockChain constructor options (#31925) 2025-06-19 12:21:15 +02:00
backend.go core: reduce load on txindexer from API (#31752) 2025-05-05 10:07:55 +08:00
dbapi.go all: remove concept of public/private API definitions (#25053) 2022-06-21 12:05:43 +03:00
errors.go internal/ethapi: eth_multicall (#27720) 2024-09-06 11:31:00 +02:00
logtracer.go internal/ethapi: eth_multicall (#27720) 2024-09-06 11:31:00 +02:00
simulate.go eth/filters: add timestamp to derived logs (#31887) 2025-06-10 11:52:02 +02:00
simulate_test.go internal/ethapi: update default simulation timestamp increment to 12 (#30981) 2025-01-03 20:15:06 +08:00
transaction_args.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
transaction_args_test.go core: reduce load on txindexer from API (#31752) 2025-05-05 10:07:55 +08:00