]> git.bitcoin.ninja Git - rust-lightning/commit
Add a note that `peer_disconnected` impls must be idempotent
authorMatt Corallo <git@bluematt.me>
Mon, 12 Sep 2022 18:54:05 +0000 (18:54 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Sep 2022 16:59:30 +0000 (16:59 +0000)
commit91db4ba2f8097d29af4363bfd6f5445be1420096
treedc7741591952a4e7570f5b8e698d94edc3240b58
parent15a5966fa24286ca805aea3a97e606b10c71543d
Add a note that `peer_disconnected` impls must be idempotent

It appears our code is already correct here, but its also nice to
add a quick safety check in `channel.rs` which ensures we will
remain idempotent.
lightning/src/ln/channel.rs
lightning/src/ln/msgs.rs