From 9c2270c72225afa1b8b1ad14c61799e04bc93c7a Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Wed, 12 Jan 2022 18:29:05 -0800 Subject: [PATCH] Fixed comment on weight_received_htlc --- lightning/src/chain/package.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5