1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/node
rjl493456442 10519768a2
core, ethdb: introduce database sync function (#31703)
This pull request introduces a SyncKeyValue function to the
ethdb.KeyValueStore
interface, providing the ability to forcibly flush all previous writes
to disk.

This functionality is critical for go-ethereum, which internally uses
two independent
database engines: a key-value store (such as Pebble, LevelDB, or
memoryDB for
testing) and a flat-file–based freezer. To ensure write-order
consistency between
these engines, the key-value store must be explicitly synced before
writing to the
freezer and vice versa.

Fixes 
- https://github.com/ethereum/go-ethereum/issues/31405
- https://github.com/ethereum/go-ethereum/issues/29819
2025-05-08 19:10:26 +08:00
..
api.go p2p/discover: improved node revalidation (#29572) 2024-05-23 14:26:09 +02:00
api_test.go build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
config.go cmd/geth: remove unlock commandline flag (#30737) 2024-11-15 10:15:15 +01:00
config_test.go build: replace tenv linter with usetesting (#31172) 2025-02-21 13:36:18 +01:00
database.go core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
defaults.go node, rpc: add configurable HTTP request limit (#28948) 2024-02-07 21:06:38 +01:00
doc.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
endpoints.go node, rpc: add ReadHeaderTimeout config option (#25338) 2022-08-03 16:50:12 +02:00
errors.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
jwt_auth.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
jwt_handler.go node: change JWT error status to 401 Unauthorized (#25629) 2022-08-30 15:25:02 +02:00
lifecycle.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
node.go cmd/geth: remove unlock commandline flag (#30737) 2024-11-15 10:15:15 +01:00
node_auth_test.go all: replace path.Join with filepath.Join (#29479) 2024-04-08 12:29:49 +03:00
node_example_test.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
node_test.go build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
rpcstack.go all: fix mismatched names in comments (#29348) 2024-03-26 21:01:28 +01:00
rpcstack_test.go node: avoid double close resp.Body (#31710) 2025-05-02 09:21:17 -06:00
utils_test.go all: remove version field from rpc.API 2022-06-27 12:39:46 +02:00