mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-20 13:27:27 +02:00
In this commit, we cap each QueryChannelRange response at 100,000 SCIDs
across all streamed replies. The existing reply-count limit did not track
the aggregate decoded working set, so memory use varied with the encoding
and composition of the reply stream.
We count raw SCIDs before timestamp filtering, charge replies using the
received encoding type, and release all accumulated range state on any
error. This bounds both memory and CPU work while still leaving headroom
above the current graph.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| ban.go | ||
| ban_test.go | ||
| bootstrapper.go | ||
| bootstrapper_test.go | ||
| chan_series.go | ||
| gossiper.go | ||
| gossiper_test.go | ||
| log.go | ||
| message_store.go | ||
| message_store_test.go | ||
| mock_test.go | ||
| reliable_sender.go | ||
| reliable_sender_test.go | ||
| sync_manager.go | ||
| sync_manager_test.go | ||
| syncer.go | ||
| syncer_atomic_test.go | ||
| syncer_queue_test.go | ||
| syncer_test.go | ||
| validation_barrier.go | ||
| validation_barrier_test.go | ||