We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad7e8d commit 4ad6bd6Copy full SHA for 4ad6bd6
lightning/src/sign/mod.rs
@@ -523,13 +523,7 @@ impl SpendableOutputDescriptor {
523
sequence: Sequence::ZERO,
524
witness: Witness::new(),
525
});
526
- const STATIC_OUTPUT_WITNESS_WEIGHT: u64 = (1 /* witness items */
527
- + 1 /* sig push */
528
- + bitcoin::secp256k1::constants::MAX_SIGNATURE_SIZE
529
- + 1 /* pubkey push */
530
- + bitcoin::secp256k1::constants::PUBLIC_KEY_SIZE)
531
- as u64;
532
- witness_weight += STATIC_OUTPUT_WITNESS_WEIGHT;
+ witness_weight += P2WPKH_WITNESS_WEIGHT;
533
#[cfg(feature = "grind_signatures")]
534
{
535
// Guarantees a low R signature
0 commit comments