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:
parent
14c72e755b
commit
dfff85352a
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue