Prevent any update of local commitment transaction once signed
authorAntoine Riard <ariard@student.42.fr>
Fri, 27 Mar 2020 21:53:52 +0000 (17:53 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:43:50 +0000 (17:43 -0400)
commite46e183084ed858f41aa304acd78503aea1a96ed
treecd04406a04231555021a22f2b85a026bf38942cc
parent73e0a0112adae5086ae6617fec2131f362086797
Prevent any update of local commitment transaction once signed

To prevent any unsafe state discrepancy between offchain and onchain,
once local commitment transaction has been signed due to an event
(either block height for HTLC-timeout or channel force-closure), don't
allow any further update of local commitment transaction view
to avoid delivery of revocation secret to counterparty for the
aformentionned signed transaction.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs