Skip to content

Commit

Permalink
Add support for Bitcoin Core v27.2
Browse files Browse the repository at this point in the history
Add support for minor release of v27. Nothing much to do except update
all the manifest infrastructure and add the version-specific
re-exports from `client`.

Close: #3
  • Loading branch information
tcharding committed Nov 27, 2024
1 parent 8174e21 commit 1d83504
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions integration_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ edition = "2021"
# Enable the same feature in `node` and the version feature here.
# All minor releases (but only the latest patch release).
28_0 = ["v28", "node/28_0"]
27_2 = ["v27", "node/27_2"]
27_1 = ["v27", "node/27_1"]
27_0 = ["v27", "node/27_0"]
26_2 = ["v26", "node/26_2"]
Expand Down
3 changes: 2 additions & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ default = ["28_0"]
download = ["bitcoin_hashes", "flate2", "tar", "minreq", "zip"]

# We support all minor releases (but only the latest patch release).
28_0 = ["download", "27_1"]
28_0 = ["download", "27_2"]
27_2 = ["download", "27_1"]
27_1 = ["download", "27_0"]
27_0 = ["download", "26_2"]
26_2 = ["download", "26_1"]
Expand Down
6 changes: 5 additions & 1 deletion node/src/client_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
#[allow(unused_imports)] // Not all users need the json types.
pub use corepc_client::{client_sync::v28::{Client, AddressType}, types::v28 as types};

#[cfg(all(feature = "27_1", not(feature = "28_0")))]
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
#[allow(unused_imports)] // Not all users need the json types.
pub use corepc_client::{client_sync::v27::{Client, AddressType}, types::v27 as types};

#[cfg(all(feature = "27_1", not(feature = "27_2")))]
#[allow(unused_imports)] // Not all users need the json types.
pub use corepc_client::{client_sync::v27::{Client, AddressType}, types::v27 as types};

Expand Down
5 changes: 4 additions & 1 deletion node/src/versions.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#[cfg(feature = "28_0")]
pub const VERSION: &str = "28.0";

#[cfg(all(feature = "27_1", not(feature = "28_0")))]
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
pub const VERSION: &str = "27.1";

#[cfg(all(feature = "27_1", not(feature = "27_2")))]
pub const VERSION: &str = "27.1";

#[cfg(all(feature = "27_0", not(feature = "27_1")))]
Expand Down

0 comments on commit 1d83504

Please sign in to comment.