Separate Version impl blocks

In preparation for adding an extension trait; separate the
`transaction::Version` impl blocks into stuff that will stay here and
stuff that will go to `primitives`.

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2024-09-03 10:54:48 +10:00
parent af0c85c6e0
commit 1fde868f51
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 0 deletions

View File

@ -944,7 +944,9 @@ impl Version {
/// The second Bitcoin transaction version (post-BIP-68). /// The second Bitcoin transaction version (post-BIP-68).
pub const TWO: Self = Self(2); pub const TWO: Self = Self(2);
}
impl Version {
/// Creates a non-standard transaction version. /// Creates a non-standard transaction version.
pub fn non_standard(version: i32) -> Version { Self(version) } pub fn non_standard(version: i32) -> Version { Self(version) }