This is completely unsafe as we have provided the remote side with
a commitment_signed which they can broadcast, including the HTLC
transaction, and then could claim it on-chain after we've failed it
backwards!
}
}
- for htlc in self.pending_outbound_htlcs.drain(..) {
- if htlc.state == OutboundHTLCState::LocalAnnounced {
- dropped_outbound_htlcs.push((htlc.source, htlc.payment_hash));
- }
+ for _htlc in self.pending_outbound_htlcs.drain(..) {
//TODO: Do something with the remaining HTLCs
//(we need to have the ChannelManager monitor them so we can claim the inbound HTLCs
//which correspond)