]> git.bitcoin.ninja Git - rust-lightning/commit
Fix EnforcingChannelKeys panic when our counterparty burns their $.
authorMatt Corallo <git@bluematt.me>
Sun, 12 Jan 2020 23:04:40 +0000 (18:04 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 8 Feb 2020 01:03:00 +0000 (20:03 -0500)
commit60fad626331d871d83f560e371a41488636aa37a
treef9a63bee67411d478fe08397db29a5e52f63b522
parent2ec7c7703698b55942a7d0d1b23d83e3881d557f
Fix EnforcingChannelKeys panic when our counterparty burns their $.

If our counterparty burns their funds by revoking their current
commitment transaction before we've sent them a new one, we'll step
forward the remote commitment number. This would be otherwise fine
(and may even encourage them to broadcast their revoked state(s) on
chain), except that our new EnforcingChannelKeys expects us to not
jump forward in time. Since it isn't too important that we punish
our counterparty in such a corner-case, we opt to just close the
channel in such a case and move on.
lightning/src/ln/channel.rs