2025-01-19 automated rustfmt nightly
This commit is contained in:
parent
dc76043dcf
commit
fec6a7669e
|
@ -125,12 +125,7 @@ fn compute_sighash_p2wsh(raw_tx: &[u8], inp_idx: usize, amount: Amount) {
|
||||||
assert!((70..=72).contains(&sig_len), "signature length {} out of bounds", sig_len);
|
assert!((70..=72).contains(&sig_len), "signature length {} out of bounds", sig_len);
|
||||||
//here we assume that all sighash_flags are the same. Can they be different?
|
//here we assume that all sighash_flags are the same. Can they be different?
|
||||||
let sighash = cache
|
let sighash = cache
|
||||||
.p2wsh_signature_hash(
|
.p2wsh_signature_hash(inp_idx, witness_script, amount, sig.sighash_type)
|
||||||
inp_idx,
|
|
||||||
witness_script,
|
|
||||||
amount,
|
|
||||||
sig.sighash_type,
|
|
||||||
)
|
|
||||||
.expect("failed to compute sighash");
|
.expect("failed to compute sighash");
|
||||||
println!("SegWit p2wsh sighash: {:x} ({})", sighash, sig.sighash_type);
|
println!("SegWit p2wsh sighash: {:x} ({})", sighash, sig.sighash_type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue