]> git.bitcoin.ninja Git - rust-lightning/commit
Add `PeerManager::disconnect_all_peers` to avoid complexity in BP
authorMatt Corallo <git@bluematt.me>
Tue, 26 Oct 2021 02:03:02 +0000 (02:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 26 Oct 2021 02:04:34 +0000 (02:04 +0000)
commit4a58e9ad835d93b9efac106ba56b6b9052a63135
tree99c570913975ca29f4eca108e42a1d5ca41d0ca2
parent10580f55aa64a94dac47a0a90756b3499a742e39
Add `PeerManager::disconnect_all_peers` to avoid complexity in BP

In the coming commits simply calling `timer_tick_occurred` will no
longer disconnect all peers, so its helpful to have a utility
method.
lightning-background-processor/src/lib.rs
lightning/src/ln/peer_handler.rs