Skip to content

Commit

Permalink
2025-01-19 automated rustfmt nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmt Bot authored and github-actions[bot] committed Jan 19, 2025
1 parent dc76043 commit 720ac4d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bitcoin/examples/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
//here we assume that all sighash_flags are the same. Can they be different?
let sighash = cache
.p2wsh_signature_hash(
inp_idx,
witness_script,
amount,
sig.sighash_type,
)
.p2wsh_signature_hash(inp_idx, witness_script, amount, sig.sighash_type)
.expect("failed to compute sighash");
println!("SegWit p2wsh sighash: {:x} ({})", sighash, sig.sighash_type);
}
Expand Down

0 comments on commit 720ac4d

Please sign in to comment.