We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea2e79 commit 86f0cf2Copy full SHA for 86f0cf2
lightning/src/chain/keysinterface.rs
@@ -1017,7 +1017,9 @@ impl KeysManager {
1017
}
1018
1019
debug_assert!(expected_max_weight >= spend_tx.get_weight());
1020
- debug_assert!(expected_max_weight <= spend_tx.get_weight() + descriptors.len() * 4);
+ // Note that witnesses with a signature vary somewhat in size, so allow
1021
+ // `expected_max_weight` to overshoot by up to 3 bytes per input.
1022
+ debug_assert!(expected_max_weight <= spend_tx.get_weight() + descriptors.len() * 3);
1023
1024
Ok(spend_tx)
1025
0 commit comments