]> 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>
Mon, 3 Feb 2020 02:38:53 +0000 (21:38 -0500)
commite96332ce4233b719cd1f57c15119bda306948d3b
tree54d17770d0d1e009f5523791078e692b38131022
parent679fed362493b142ec7718a8595608f62b743ede
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