go-ethereum/beacon/light/sync
Fibonacci747 d9aaab13d3
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
beacon/light/sync: clear reqFinalityEpoch on server unregistration (#33483)
HeadSync kept reqFinalityEpoch entries for servers after receiving
EvUnregistered, while other per-server maps were cleared. This left
stale request.Server keys reachable from HeadSync, which can lead to a
slow memory leak in setups that dynamically register and unregister
servers.

The fix adds deletion of the reqFinalityEpoch entry in the
EvUnregistered handler. This aligns HeadSync with the cleanup pattern
used by other sync modules and keeps the finality request bookkeeping
strictly limited to currently registered servers.
2025-12-30 18:27:11 +01:00
..
head_sync.go beacon/light/sync: clear reqFinalityEpoch on server unregistration (#33483) 2025-12-30 18:27:11 +01:00
head_sync_test.go core, beacon, ethdb: fix typos (#29748) 2024-05-10 19:48:14 +02:00
test_helpers.go all: fix inconsistent receiver name and add lint rule for it (#29974) 2024-06-12 10:45:42 +03:00
types.go beacon/light: request finality update explicitly when necessary (#29567) 2024-04-23 13:31:32 +02:00
update_sync.go beacon/light: request finality update explicitly when necessary (#29567) 2024-04-23 13:31:32 +02:00
update_sync_test.go beacon/light/sync: basic tests for rangeLock (#30269) 2024-08-23 12:31:24 +02:00