Remove unnecessary todo
authorValentine Wallace <vwallace@protonmail.com>
Fri, 6 Nov 2020 18:30:15 +0000 (13:30 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Sun, 8 Nov 2020 22:22:20 +0000 (17:22 -0500)
commit8e7b29160ba19b971d25b66938693cecacc5993c
tree5e53a9ddd027d9d533dbc434e317f2bab280f896
parent9c7c3b99210676793b1d35575d8538979cc1b349
Remove unnecessary todo

The ChannelMonitor already monitors the chain for counterparties
revealing preimages, and will give the HTLCSources back to the
ChannelManager for claiming. Thus it's unnecessary for the ChannelManager
to monitor these HTLCs itself.

See is_resolving_htlc_output:
- if the counterparty broadcasted and then claimed one of the HTLCs we
  offered them, line 2015 is where the ChannelMonitor gives the ChannelManager
  the HTLC source
- if we broadcasted and they claimed an HTLC we offered them, line 2025 is
  where the ChannelMonitor gives the ChannelManager the HTLC source
lightning/src/ln/channel.rs