Skip to content

Commit b6059e9

Browse files
committed
Move low-R comments into blocks
1 parent 5cc3215 commit b6059e9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lightning/src/sign/mod.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ impl SpendableOutputDescriptor {
368368
});
369369
witness_weight += descriptor.max_witness_length();
370370
#[cfg(feature = "grind_signatures")]
371-
{ witness_weight -= 1; } // Guarantees a low R signature
371+
{ // Guarantees a low R signature
372+
witness_weight -= 1;
373+
}
372374
input_value += descriptor.output.value;
373375
},
374376
SpendableOutputDescriptor::DelayedPaymentOutput(descriptor) => {
@@ -381,7 +383,9 @@ impl SpendableOutputDescriptor {
381383
});
382384
witness_weight += DelayedPaymentOutputDescriptor::MAX_WITNESS_LENGTH;
383385
#[cfg(feature = "grind_signatures")]
384-
{ witness_weight -= 1; } // Guarantees a low R signature
386+
{ // Guarantees a low R signature
387+
witness_weight -= 1;
388+
}
385389
input_value += descriptor.output.value;
386390
},
387391
SpendableOutputDescriptor::StaticOutput { ref outpoint, ref output, .. } => {
@@ -394,7 +398,9 @@ impl SpendableOutputDescriptor {
394398
});
395399
witness_weight += 1 + 73 + 34;
396400
#[cfg(feature = "grind_signatures")]
397-
{ witness_weight -= 1; } // Guarantees a low R signature
401+
{ // Guarantees a low R signature
402+
witness_weight -= 1;
403+
}
398404
input_value += output.value;
399405
}
400406
}

0 commit comments

Comments
 (0)