File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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
131134pub const FUNDING_TRANSACTION_WITNESS_WEIGHT : u64 = 1 + // number_of_witness_elements
132135 1 + // nil_len
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ pub struct DelayedPaymentOutputDescriptor {
112112
113113impl 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 ( ) {
You can’t perform that action at this time.
0 commit comments