]> git.bitcoin.ninja Git - rust-lightning/commit
Reduce the number of timer ticks a peer is allowed to take 2022-03-timer-tick-count
authorMatt Corallo <git@bluematt.me>
Mon, 7 Mar 2022 19:02:15 +0000 (19:02 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 7 Mar 2022 19:07:14 +0000 (19:07 +0000)
commit252280d6bfda49a7ed4fd5d427eed5c74af65ae5
treea46b8b366f629208b73883f05a4734eeb2985459
parent0e0aabea07afcdae2008a653bb9a41f340d571fa
Reduce the number of timer ticks a peer is allowed to take

In 2d3a2108979adca6b7632e2d59c10e4b131e8bf4, we increased the
default ping timer in `lightning-background-processor` to ten
seconds from five. However, we didn't change the timer count at
which we disconnect peers if they're not responding, which we
likely should have done. We do so here, as well as update the
documentation for `PeerManager::timer_tick_occurred` to suggest
always ticking the timer every ten seconds instead of five.
lightning/src/ln/peer_handler.rs