]> git.bitcoin.ninja Git - rust-lightning/commit
Improve `PeerHandler` debug_assertions and checks
authorMatt Corallo <git@bluematt.me>
Tue, 28 Feb 2023 21:38:29 +0000 (21:38 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 2 Mar 2023 21:15:58 +0000 (21:15 +0000)
commitcc9aa45c7e4b84115b5dd2afe279a59ab7a1d1d0
tree73c4796f592f035203e5142c0d331931679baa3e
parent2c15bb437eeab20cc3cfd33026546b4337933550
Improve `PeerHandler` debug_assertions and checks

This removes two panics from `PeerHandler` which can trivially be
`debug_assert!(false); return Err;`s, and adds another
`debug_assertion` on internal state consistency during disconnect.
lightning/src/ln/peer_handler.rs