Skip to content

Commit 540639f

Browse files
committed
f - clean-up docs
1 parent 4ad6bd6 commit 540639f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,13 @@ const MULTISIG_SCRIPT_SIZE: u64 = 1 + // OP_2
121121
bitcoin::secp256k1::constants::PUBLIC_KEY_SIZE as u64 + // pubkey2
122122
1 + // OP_2
123123
1; // OP_CHECKMULTISIG
124-
/// The weight of a funding transaction input (2-of-2 P2WSH)
125-
/// See https://github.com/lightning/bolts/blob/master/03-transactions.md#expected-weight-of-the-commitment-transaction
124+
125+
/// The weight of a funding transaction input (2-of-2 P2WSH).
126+
///
127+
/// Unlike in the [spec], 72 WU is used for the max signature size since 73 WU signatures are
128+
/// non-standard.
129+
///
130+
/// [spec]: https://github.com/lightning/bolts/blob/master/03-transactions.md#expected-weight-of-the-commitment-transaction
126131
pub const FUNDING_TRANSACTION_WITNESS_WEIGHT: u64 = 1 + // number_of_witness_elements
127132
1 + // nil_len
128133
1 + // sig len

0 commit comments

Comments
 (0)