projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5cc3215
)
Move low-R comments into blocks
author
Elias Rohrer
<dev@tnull.de>
Wed, 27 Mar 2024 10:50:07 +0000
(11:50 +0100)
committer
Elias Rohrer
<dev@tnull.de>
Tue, 9 Apr 2024 11:08:25 +0000
(13:08 +0200)
lightning/src/sign/mod.rs
patch
|
blob
|
history
diff --git
a/lightning/src/sign/mod.rs
b/lightning/src/sign/mod.rs
index 7b9dba0dcc953ddd70bdcf0cbc990c7eb9137dd2..fd992a594c489fe2e6ada0491f1cdc3c5fe8d0e9 100644
(file)
--- a/
lightning/src/sign/mod.rs
+++ b/
lightning/src/sign/mod.rs
@@
-368,7
+368,9
@@
impl SpendableOutputDescriptor {
});
witness_weight += descriptor.max_witness_length();
#[cfg(feature = "grind_signatures")]
});
witness_weight += descriptor.max_witness_length();
#[cfg(feature = "grind_signatures")]
- { witness_weight -= 1; } // Guarantees a low R signature
+ { // Guarantees a low R signature
+ witness_weight -= 1;
+ }
input_value += descriptor.output.value;
},
SpendableOutputDescriptor::DelayedPaymentOutput(descriptor) => {
input_value += descriptor.output.value;
},
SpendableOutputDescriptor::DelayedPaymentOutput(descriptor) => {
@@
-381,7
+383,9
@@
impl SpendableOutputDescriptor {
});
witness_weight += DelayedPaymentOutputDescriptor::MAX_WITNESS_LENGTH;
#[cfg(feature = "grind_signatures")]
});
witness_weight += DelayedPaymentOutputDescriptor::MAX_WITNESS_LENGTH;
#[cfg(feature = "grind_signatures")]
- { witness_weight -= 1; } // Guarantees a low R signature
+ { // Guarantees a low R signature
+ witness_weight -= 1;
+ }
input_value += descriptor.output.value;
},
SpendableOutputDescriptor::StaticOutput { ref outpoint, ref output, .. } => {
input_value += descriptor.output.value;
},
SpendableOutputDescriptor::StaticOutput { ref outpoint, ref output, .. } => {
@@
-394,7
+398,9
@@
impl SpendableOutputDescriptor {
});
witness_weight += 1 + 73 + 34;
#[cfg(feature = "grind_signatures")]
});
witness_weight += 1 + 73 + 34;
#[cfg(feature = "grind_signatures")]
- { witness_weight -= 1; } // Guarantees a low R signature
+ { // Guarantees a low R signature
+ witness_weight -= 1;
+ }
input_value += output.value;
}
}
input_value += output.value;
}
}