diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 5488486d..a39dcd84 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -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()`. - let _ = writer.write(b"[not a transaction] SIGHASH_SINGLE bug")?; + writer.write_all(b"[not a transaction] SIGHASH_SINGLE bug")?; return Ok(()) }