@@ -984,23 +984,29 @@ mod test {
984
984
// expected weight: 4 (scriptSig len) + 1 (witness len) + 1 (OP_PUSH) + 64 (sig)
985
985
let internal_key_sat_weight = Some ( 70 ) ;
986
986
// expected weight: 4 (scriptSig len) + 1 (witness len) + 1 (OP_PUSH) + 64 (sig)
987
+ // + 1 (script len)
987
988
// + 34 [script: 1 (OP_PUSHBYTES_32) + 32 (key) + 1 (OP_CHECKSIG)]
989
+ // + 1 (control block len)
988
990
// + 65 [control block: 1 (control byte) + 32 (internal key) + 32 (hash BC)]
989
- let first_leaf_sat_weight = Some ( 169 ) ;
991
+ let first_leaf_sat_weight = Some ( 171 ) ;
990
992
// expected weight: 4 (scriptSig len) + 1 (witness len) + 1 (OP_PUSH) + 64 (sig)
991
993
// + 1 (OP_ZERO)
994
+ // + 1 (script len)
992
995
// + 70 [script: 1 (OP_PUSHBYTES_32) + 32 (key) + 1 (OP_CHECKSIG)
993
996
// + 1 (OP_PUSHBYTES_32) + 32 (key) + 1 (OP_CHECKSIGADD)
994
997
// + 1 (OP_PUSHNUM1) + 1 (OP_NUMEQUAL)]
998
+ // + 1 (control block len)
995
999
// + 97 [control block: 1 (control byte) + 32 (internal key) + 32 (hash C) + 32 (hash
996
1000
// A)]
997
- let second_leaf_sat_weight = Some ( 238 ) ;
1001
+ let second_leaf_sat_weight = Some ( 240 ) ;
998
1002
// expected weight: 4 (scriptSig len) + 1 (witness len) + 1 (OP_PUSH) + 64 (sig)
1003
+ // + 1 (script len)
999
1004
// + 36 [script: 1 (OP_PUSHBYTES_32) + 32 (key) + 1 (OP_CHECKSIGVERIFY)
1000
1005
// + 1 (OP_PUSHNUM_10) + 1 (OP_CLTV)]
1006
+ // + 1 (control block len)
1001
1007
// + 97 [control block: 1 (control byte) + 32 (internal key) + 32 (hash B) + 32 (hash
1002
1008
// A)]
1003
- let third_leaf_sat_weight = Some ( 203 ) ;
1009
+ let third_leaf_sat_weight = Some ( 205 ) ;
1004
1010
1005
1011
let tests = vec ! [
1006
1012
// Don't give assets
0 commit comments