Skip to content

Commit 1d83504

Browse files
committed
Add support for Bitcoin Core v27.2
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
1 parent 8174e21 commit 1d83504

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

integration_test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ edition = "2021"
1414
# Enable the same feature in `node` and the version feature here.
1515
# All minor releases (but only the latest patch release).
1616
28_0 = ["v28", "node/28_0"]
17+
27_2 = ["v27", "node/27_2"]
1718
27_1 = ["v27", "node/27_1"]
1819
27_0 = ["v27", "node/27_0"]
1920
26_2 = ["v26", "node/26_2"]

node/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ default = ["28_0"]
4545
download = ["bitcoin_hashes", "flate2", "tar", "minreq", "zip"]
4646

4747
# We support all minor releases (but only the latest patch release).
48-
28_0 = ["download", "27_1"]
48+
28_0 = ["download", "27_2"]
49+
27_2 = ["download", "27_1"]
4950
27_1 = ["download", "27_0"]
5051
27_0 = ["download", "26_2"]
5152
26_2 = ["download", "26_1"]

node/src/client_versions.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#[allow(unused_imports)] // Not all users need the json types.
1111
pub use corepc_client::{client_sync::v28::{Client, AddressType}, types::v28 as types};
1212

13-
#[cfg(all(feature = "27_1", not(feature = "28_0")))]
13+
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
14+
#[allow(unused_imports)] // Not all users need the json types.
15+
pub use corepc_client::{client_sync::v27::{Client, AddressType}, types::v27 as types};
16+
17+
#[cfg(all(feature = "27_1", not(feature = "27_2")))]
1418
#[allow(unused_imports)] // Not all users need the json types.
1519
pub use corepc_client::{client_sync::v27::{Client, AddressType}, types::v27 as types};
1620

node/src/versions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#[cfg(feature = "28_0")]
22
pub const VERSION: &str = "28.0";
33

4-
#[cfg(all(feature = "27_1", not(feature = "28_0")))]
4+
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
5+
pub const VERSION: &str = "27.1";
6+
7+
#[cfg(all(feature = "27_1", not(feature = "27_2")))]
58
pub const VERSION: &str = "27.1";
69

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

0 commit comments

Comments
 (0)