File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,11 @@ fn main() {
116
116
117
117
// Max Satisfaction Weight for compilation, corresponding to the script-path spend
118
118
// `multi_a(2,PUBKEY_1,PUBKEY_2) at taptree depth 1, having
119
- // Max Witness Size = scriptSig len + control_block size + varint(script_size) + script_size +
120
- // varint(max satisfaction elements ) + max satisfaction size
121
- // = 4 + 65 + 1 + 70 + 1 + 132
119
+ // Max Witness Size = scriptSig len + witnessStack len + varint(control_block_size) +
120
+ // control_block size + varint(script_size ) + script_size + max_satisfaction_size
121
+ // = 4 + 1 + 1 + 65 + 1 + 70 + 132 = 274
122
122
let max_sat_wt = real_desc. max_satisfaction_weight ( ) . unwrap ( ) ;
123
- assert_eq ! ( max_sat_wt, 273 ) ;
123
+ assert_eq ! ( max_sat_wt, 274 ) ;
124
124
125
125
// Compute the bitcoin address and check if it matches
126
126
let network = Network :: Bitcoin ;
You can’t perform that action at this time.
0 commit comments