Monitor should panic on receiving buggy update sequences
authorAntoine Riard <ariard@student.42.fr>
Mon, 6 Apr 2020 22:54:45 +0000 (18:54 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:50:26 +0000 (17:50 -0400)
commit851ab92ea28f4d4c4c67383c9f935d0555d2efd9
treeac8555828901e481331b79769e04e693f3185e1a
parentba880e3662d7f01c8963fcac37d0b32ad2c9086c
Monitor should panic on receiving buggy update sequences

Channel shouldn't send a ChannelForceClosed update followed by
a LatestLocalCommitmentTxInfo as it would be a programming error
leading to risk of money loss. Force-closing the channel will
broadcast the local commitment transaction, if the revocation
secret for this one is released after its broadcast, it would
allow remote party to claim outputs on this transaction using
the revocation path.
lightning/src/ln/channelmonitor.rs