File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -274,20 +274,11 @@ pub fn finalize_helper<C: secp256k1::Verification>(
274
274
for ( n, input) in psbt. inputs . iter ( ) . enumerate ( ) {
275
275
let target = input. sighash_type . unwrap_or ( bitcoin:: EcdsaSigHashType :: All ) ;
276
276
for ( key, ecdsa_sig) in & input. partial_sigs {
277
- let flag = bitcoin:: EcdsaSigHashType :: from_u32_standard ( ecdsa_sig. hash_ty as u32 )
278
- . map_err ( |_| {
279
- super :: Error :: InputError (
280
- InputError :: Interpreter ( interpreter:: Error :: NonStandardSigHash (
281
- ecdsa_sig. to_vec ( ) ,
282
- ) ) ,
283
- n,
284
- )
285
- } ) ?;
286
- if target != flag {
277
+ if target != ecdsa_sig. hash_ty {
287
278
return Err ( Error :: InputError (
288
279
InputError :: WrongSigHashFlag {
289
280
required : target,
290
- got : flag ,
281
+ got : ecdsa_sig . hash_ty ,
291
282
pubkey : * key,
292
283
} ,
293
284
n,
You can’t perform that action at this time.
0 commit comments