Merge pull request #222 from TheBlueMatt/2018-10-pre-commit-disconnect
[rust-lightning] / src / ln / channel.rs
index b8a89fe5928299503ce8d094d035f1c47253ff1a..e8ec23d9451e837a3e2acde52d0de194ed283f91 100644 (file)
@@ -2044,6 +2044,7 @@ impl Channel {
                                },
                        }
                });
+               self.next_remote_htlc_id -= inbound_drop_count;
 
                for htlc in self.pending_outbound_htlcs.iter_mut() {
                        if let OutboundHTLCState::RemoteRemoved = htlc.state {