Skip to content

Commit f4e25a4

Browse files
committed
f - update docs
1 parent c3398be commit f4e25a4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ const MULTISIG_SCRIPT_SIZE: u64 = 1 + // OP_2
127127
/// Unlike in the [spec], 72 WU is used for the max signature size since 73 WU signatures are
128128
/// non-standard.
129129
///
130+
/// Note: If you have the `grind_signatures` feature enabled, this will be at least 1 byte
131+
/// shorter.
132+
///
130133
/// [spec]: https://github.com/lightning/bolts/blob/master/03-transactions.md#expected-weight-of-the-commitment-transaction
131134
pub const FUNDING_TRANSACTION_WITNESS_WEIGHT: u64 = 1 + // number_of_witness_elements
132135
1 + // nil_len

lightning/src/sign/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ pub struct DelayedPaymentOutputDescriptor {
112112

113113
impl DelayedPaymentOutputDescriptor {
114114
/// The maximum length a well-formed witness spending one of these should have.
115-
/// Note: If you have the grind_signatures feature enabled, this will be at least 1 byte
115+
///
116+
/// Note: If you have the `grind_signatures` feature enabled, this will be at least 1 byte
116117
/// shorter.
117118
pub const MAX_WITNESS_LENGTH: u64 = (1 /* witness items */
118119
+ 1 /* sig push */
@@ -194,7 +195,8 @@ impl StaticPaymentOutputDescriptor {
194195
}
195196

196197
/// The maximum length a well-formed witness spending one of these should have.
197-
/// Note: If you have the grind_signatures feature enabled, this will be at least 1 byte
198+
///
199+
/// Note: If you have the `grind_signatures` feature enabled, this will be at least 1 byte
198200
/// shorter.
199201
pub fn max_witness_length(&self) -> u64 {
200202
if self.needs_csv_1_for_spend() {

0 commit comments

Comments
 (0)