From bb3a3ecbaa171dd003faa968bbbefe8fc662e99a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 3 Sep 2024 10:56:06 +1000 Subject: [PATCH] Introduce temporary module for Version In preparation for using the formatter to indent add a temporary module. Done as part of adding an extension trait. --- bitcoin/src/blockdata/transaction.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index d1a2753fe..071009808 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -946,6 +946,8 @@ impl Version { pub const TWO: Self = Self(2); } +mod tmp { +use super::*; impl Version { /// Creates a non-standard transaction version. pub fn non_standard(version: i32) -> Version { Self(version) } @@ -953,6 +955,7 @@ impl Version { /// Returns true if this transaction version number is considered standard. pub fn is_standard(&self) -> bool { *self == Version::ONE || *self == Version::TWO } } +} impl Encodable for Version { fn consensus_encode(&self, w: &mut W) -> Result {