diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 26f72ad2..1f970b3b 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -980,10 +980,6 @@ impl Version { pub fn is_standard(&self) -> bool { *self == Version::ONE || *self == Version::TWO } } -impl Default for Version { - fn default() -> Version { Version::TWO } -} - impl Encodable for Version { fn consensus_encode(&self, w: &mut W) -> Result { self.0.consensus_encode(w) @@ -1942,7 +1938,7 @@ mod tests { ]; let empty_transaction_weight = Transaction { - version: Version::default(), + version: Version::TWO, lock_time: absolute::LockTime::ZERO, input: vec![], output: vec![], diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index cabf7de9..64384b4c 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -1463,7 +1463,7 @@ mod tests { #[rustfmt::skip] // Allow long function call `taproot_signature_hash`. fn test_sighash_errors() { let dumb_tx = Transaction { - version: transaction::Version::default(), + version: transaction::Version::TWO, lock_time: absolute::LockTime::ZERO, input: vec![TxIn::default()], output: vec![],