]> git.bitcoin.ninja Git - rust-lightning/commit
Update pre-HTLC DataLossProtect to match new spec changes 2020-03-data-loss-spec-550
authorMatt Corallo <git@bluematt.me>
Sat, 15 Feb 2020 03:32:30 +0000 (22:32 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 6 Mar 2020 02:16:47 +0000 (21:16 -0500)
commit4f06d7a83c04d3f99131175aec9a30ec0c55df5d
tree4689277986d53e8e175bd13f154682bf1e73f851
parentd850e1234a21f0107a9700870b43a00d71f60e80
Update pre-HTLC DataLossProtect to match new spec changes

This was the way DataLossProtect was originally written, however it
didn't match other implementations at the time during testing. It
turns out, other implementations didn't agree with each other
anyway (depending on the exact timeline), so the spec was clarified
somewhat in https://github.com/lightningnetwork/lightning-rfc/pull/550
. This updates us to be in line with the new guidance and appears
to solve out-of-sync issues in testing.
lightning/src/ln/channel.rs