Ignore bytes written for sighash_single bug output

Clippy emits:

  error: written amount is not handled

This code is explicitly writing garbage to the writer, no need to handle
the number of bytes written.
This commit is contained in:
Tobin C. Harding 2022-05-25 13:25:23 +10:00
parent 14c72e755b
commit dfff85352a
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ impl Transaction {
// will result in the data written to the writer being hashed, however the correct
// handling of the SIGHASH_SINGLE bug is to return the 'one array' - either implement
// this behaviour manually or use `signature_hash()`.
writer.write(b"[not a transaction] SIGHASH_SINGLE bug")?;
let _ = writer.write(b"[not a transaction] SIGHASH_SINGLE bug")?;
return Ok(())
}