Skip to content

Commit

Permalink
Merge #9: Add support for Bitcoin Core v27.2
Browse files Browse the repository at this point in the history
1d83504 Add support for Bitcoin Core v27.2 (Tobin C. Harding)

Pull request description:

  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

ACKs for top commit:
  apoelstra:
    ACK 1d83504; successfully ran local tests

Tree-SHA512: ae115480f97a8b9651763bb3443aeca5355bc277a8e10ba140238865e8e1952506af57ce328b211329ffd7c2d3bc69b747886c4927222cfbd81126d5b6532be7
  • Loading branch information
apoelstra committed Nov 28, 2024
2 parents 8174e21 + 1d83504 commit 6dcf3f2
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 6dcf3f2

Please sign in to comment.