lnd/peer
Elle Mouton d4089661a8
peer: add mock BestBlockView to test peer config
The test Config in createTestPeer left BestBlockView nil. When the
PingManager's timer fires during a test, it calls
BestBlockView.BestBlockHeader() which panics on the nil receiver.
This was a flaky failure since it depended on a race between the
timer and test completion.

Add a trivial mockBestBlockView that returns an empty block header
and wire it into the test Config.
2026-03-24 11:49:48 +02:00
..
brontide.go peer: fix nil deref in newPingPayload on BestBlockHeader error 2026-03-24 11:49:35 +02:00
brontide_test.go peer: add test for createHtlcValidator 2026-03-04 20:19:43 +01:00
chan_observer.go peer: fix MarkCoopBroadcasted to correctly use local parameter 2026-02-02 12:16:29 +01:00
daemon_adapters.go peer: conditionally create rbf coop close fsm based on feature bits 2025-03-18 11:44:20 -05:00
interfaces.go peer+lnwire: move LinkUpdater to lnwire 2024-03-06 11:59:19 -08:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
musig_chan_closer.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
ping_manager.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
ping_manager_test.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
setup_test.go multi: use MakeTestGraph everywhere for test graph creation 2025-05-22 14:14:42 +02:00
test_utils.go peer: add mock BestBlockView to test peer config 2026-03-24 11:49:48 +02:00