Remove outdated `Channel` TODO
authorDuncan Dean <git@dunxen.dev>
Thu, 24 Aug 2023 13:32:05 +0000 (15:32 +0200)
committerDuncan Dean <git@dunxen.dev>
Fri, 8 Sep 2023 08:19:39 +0000 (10:19 +0200)
lightning/src/ln/channel.rs

index 022767e6f613faffd36143dee351a89baf1304c1..659c81149946c2d7e402a00c44422efcbac8fbaf 100644 (file)
@@ -2036,11 +2036,6 @@ fn commit_tx_fee_msat(feerate_per_kw: u32, num_htlcs: usize, channel_type_featur
        (commitment_tx_base_weight(channel_type_features) + num_htlcs as u64 * COMMITMENT_TX_WEIGHT_PER_HTLC) * feerate_per_kw as u64 / 1000 * 1000
 }
 
-// TODO: We should refactor this to be an Inbound/OutboundChannel until initial setup handshaking
-// has been completed, and then turn into a Channel to get compiler-time enforcement of things like
-// calling channel_id() before we're set up or things like get_funding_signed on an
-// inbound channel.
-//
 // Holder designates channel data owned for the benefit of the user client.
 // Counterparty designates channel data owned by the another channel participant entity.
 pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {