File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,9 @@ impl SpendableOutputDescriptor {
368
368
} ) ;
369
369
witness_weight += descriptor. max_witness_length ( ) ;
370
370
#[ cfg( feature = "grind_signatures" ) ]
371
- { witness_weight -= 1 ; } // Guarantees a low R signature
371
+ { // Guarantees a low R signature
372
+ witness_weight -= 1 ;
373
+ }
372
374
input_value += descriptor. output . value ;
373
375
} ,
374
376
SpendableOutputDescriptor :: DelayedPaymentOutput ( descriptor) => {
@@ -381,7 +383,9 @@ impl SpendableOutputDescriptor {
381
383
} ) ;
382
384
witness_weight += DelayedPaymentOutputDescriptor :: MAX_WITNESS_LENGTH ;
383
385
#[ cfg( feature = "grind_signatures" ) ]
384
- { witness_weight -= 1 ; } // Guarantees a low R signature
386
+ { // Guarantees a low R signature
387
+ witness_weight -= 1 ;
388
+ }
385
389
input_value += descriptor. output . value ;
386
390
} ,
387
391
SpendableOutputDescriptor :: StaticOutput { ref outpoint, ref output, .. } => {
@@ -394,7 +398,9 @@ impl SpendableOutputDescriptor {
394
398
} ) ;
395
399
witness_weight += 1 + 73 + 34 ;
396
400
#[ cfg( feature = "grind_signatures" ) ]
397
- { witness_weight -= 1 ; } // Guarantees a low R signature
401
+ { // Guarantees a low R signature
402
+ witness_weight -= 1 ;
403
+ }
398
404
input_value += output. value ;
399
405
}
400
406
}
You can’t perform that action at this time.
0 commit comments