From: Ken Sedgwick Date: Thu, 13 Jan 2022 02:29:05 +0000 (-0800) Subject: Fixed comment on weight_received_htlc X-Git-Tag: v0.0.105~40^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=9c2270c72225afa1b8b1ad14c61799e04bc93c7a;p=rust-lightning Fixed comment on weight_received_htlc --- diff --git a/lightning/src/chain/package.rs b/lightning/src/chain/package.rs index 13d0e9390..1cc63a8c8 100644 --- a/lightning/src/chain/package.rs +++ b/lightning/src/chain/package.rs @@ -62,7 +62,7 @@ pub(crate) fn weight_offered_htlc(opt_anchors: bool) -> u64 { } pub(crate) fn weight_received_htlc(opt_anchors: bool) -> u64 { - // number_of_witness_elements + sig_length + revocation_sig + pubkey_length + revocationpubkey + witness_script_length + witness_script + // number_of_witness_elements + sig_length + counterpartyhtlc_sig + empty_vec_length + empty_vec + witness_script_length + witness_script const WEIGHT_RECEIVED_HTLC: u64 = 1 + 1 + 73 + 1 + 1 + 1 + 139; const WEIGHT_RECEIVED_HTLC_ANCHORS: u64 = WEIGHT_RECEIVED_HTLC + 3; // + OP_1 + OP_CSV + OP_DROP if opt_anchors { WEIGHT_RECEIVED_HTLC_ANCHORS } else { WEIGHT_RECEIVED_HTLC }