Skip to content

Commit d01fb8b

Browse files
committed
Merge #184: Add support for Core version 28.1
1b24ece Add support for Core version 28.1 (Jamil Lambert, PhD) Pull request description: Add v28.1 to all locations it is required including features. Closes #171 Closes #172 ACKs for top commit: tcharding: ACK 1b24ece Tree-SHA512: b114ae2b80dca6ad4d582d0f4e80d76856562e0c983bed4c27230bd1822d5e2a5619a9cd996ce06dd149b610a6a7fa4b908a8360bc0741d98c9abc49752b90c4
2 parents 6afae45 + 1b24ece commit d01fb8b

File tree

10 files changed

+45
-8
lines changed

10 files changed

+45
-8
lines changed

.github/workflows/rust.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ jobs:
210210
matrix:
211211
feature:
212212
[
213+
"28_1",
213214
"28_0",
214215
"27_2",
215216
"27_1",

client/src/client_sync/v28/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub use crate::client_sync::{
2222
};
2323

2424
crate::define_jsonrpc_minreq_client!("v28");
25-
crate::impl_client_check_expected_server_version!({ [280000] });
25+
crate::impl_client_check_expected_server_version!({ [280000, 280100] });
2626

2727
// == Blockchain ==
2828
crate::impl_client_v17__getbestblockhash!();

contrib/run-bitcoind.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CONFIGURATION
4242
4343
- Examples
4444
45-
v28 28.1 281 /opt/bitcoin-28.0/bin/bitcoind
45+
v28 28.1 281 /opt/bitcoin-28.1/bin/bitcoind
4646
v24 24.2 242 /opt/bitcoin-24.2/bin/bitcoind
4747
v21 0.21.2 212 /opt/bitcoin-0.21.2/bin/bitcoind
4848
@@ -158,7 +158,7 @@ start() {
158158

159159
run_bitcoind() {
160160
local version="$1" # e.g., v28
161-
local version_number="$2" # e.g., 28.1.0
161+
local version_number="$2" # e.g., 28.1
162162
local version_id="$3" # e.g., 281
163163
local bitcoind="$4"
164164

integration_test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ edition = "2021"
1313
[features]
1414
# Enable the same feature in `node` and the version feature here.
1515
# All minor releases of the latest three versions.
16+
28_1 = ["v28", "node/28_1"]
1617
28_0 = ["v28", "node/28_0"]
1718
27_2 = ["v27", "node/27_2"]
1819
27_1 = ["v27", "node/27_1"]

node/Cargo.toml

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

4747
# We support all minor releases of the latest three versions.
48+
28_1 = ["28_0"]
4849
28_0 = ["27_2"]
4950
27_2 = ["27_1"]
5051
27_1 = ["27_0"]
@@ -65,5 +66,5 @@ download = ["anyhow", "bitcoin_hashes", "flate2", "tar", "minreq", "zip"]
6566
0_17_2 = []
6667

6768
[package.metadata.docs.rs]
68-
features = ["28_0"]
69+
features = ["28_1"]
6970
rustdoc-args = ["--cfg", "docsrs"]

node/contrib/extra_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
set -euox pipefail
1616

17-
FEATURES=("28_0" "27_1" "27_0" "26_2" "26_1" "26_0" "25_2" "24_2" \
17+
FEATURES=("28_1" "28_0" "27_1" "27_0" "26_2" "26_1" "26_0" "25_2" "24_2" \
1818
"23_2" "22_1" "0_21_2" "0_20_2" "0_19_1" "0_18_1" "0_17_2")
1919

2020
# Use the current `Cargo.lock` file without updating it.

node/contrib/test_vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ EXAMPLES=""
1515

1616
# Just check the latest minor version of the last three supported Core versions.
1717
# This is mainly for docs and MSRV - integration tests will catch any other errors.
18-
EXACT_FEATURES=("download,28_0" "download,27_2" "download,26_2")
18+
EXACT_FEATURES=("download,28_1" "download,27_2" "download,26_2")
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ccdee686cf3bec3456e167f0efb63eda38a3c02bd4267cb4e86714e9fb11e329 bitcoin-28.1-aarch64-linux-gnu-debug.tar.gz
2+
6ddb6990690bd4c9a9f4319ed6f6e9c995c85ce5530ee9f120e80ce09e090c44 bitcoin-28.1-aarch64-linux-gnu.tar.gz
3+
42a7c1ce49a6073c1cd8d22501605c868de7ffd06e9e5746995e403b4eccd2e0 bitcoin-28.1-arm-linux-gnueabihf-debug.tar.gz
4+
6448274420ac632c528bbd4da7198692232cef7bd16d101febc5d05f7d4af1d2 bitcoin-28.1-arm-linux-gnueabihf.tar.gz
5+
6279d0f4b085e4aed1503024d48c1fdca6c4ea3d143292e64516b4c15cd30334 bitcoin-28.1-arm64-apple-darwin.zip
6+
1cafc19a111174929c925e2745e61a8bafec8501b244478eeb712b2d426a515b bitcoin-28.1-arm64-apple-darwin-unsigned.tar.gz
7+
2cd15a8cd7edd5bea17124e68ddc4126d9ca175fc3b43fd507e06b430dfe42df bitcoin-28.1-arm64-apple-darwin-unsigned.zip
8+
abf4d2f7ebda6284e2246bce3591bcf161c114e370c0443ccc049b2728dc7e20 bitcoin-28.1-arm64-apple-darwin.tar.gz
9+
4068c0c78902df70d0d186de146776d38ccc25de6d76eb1171933a810e4a1dd1 bitcoin-28.1-codesignatures-28.1.tar.gz
10+
c5ae2dd041c7f9d9b7c722490ba5a9d624f7e9a089c67090615e1ba4ad0883ba bitcoin-28.1.tar.gz
11+
6017c4affb5a10f83f58ae14e99d4102792f01c0196b4ec5e36781cedfd5f177 bitcoin-28.1-powerpc64-linux-gnu-debug.tar.gz
12+
fb32e82104db9e86a5826a0d2ebdfa2d1e1085e1f4e127960106bce21f1c6ac2 bitcoin-28.1-powerpc64-linux-gnu.tar.gz
13+
21aa7fb88885804629d0507b2879cfd99c14f75bd77d48740ec7b7a87e09c99b bitcoin-28.1-riscv64-linux-gnu-debug.tar.gz
14+
0d3dce8b2602910874d417eaf2fda231297e3718acbfcbf08bbe516cf28540a9 bitcoin-28.1-riscv64-linux-gnu.tar.gz
15+
03d65a5d31d35d4d8850f43ca2adab98c93b5a623f99d4c31d9f1ee4ff7f3b9b bitcoin-28.1-x86_64-apple-darwin.zip
16+
251d4dfdced96898382a343b8a703c2456d915a2a21d69bf23e66914b4da8235 bitcoin-28.1-x86_64-apple-darwin-unsigned.tar.gz
17+
46f2c8c7f9a081579f505c5dd89f7b2e0a5cc511455e6feda7d73dba8c0b256f bitcoin-28.1-x86_64-apple-darwin-unsigned.zip
18+
c85d1a0ebedeff43b99db2c906b50f14547b84175a4d0ebb039a9809789af280 bitcoin-28.1-x86_64-apple-darwin.tar.gz
19+
c8bd98d7fd31a554b9859e188e89c425f770f22b536b2d4b9ee1c21c47da2822 bitcoin-28.1-x86_64-linux-gnu-debug.tar.gz
20+
07f77afd326639145b9ba9562912b2ad2ccec47b8a305bd075b4f4cb127b7ed7 bitcoin-28.1-x86_64-linux-gnu.tar.gz
21+
e48722e54b0ac61c296371aa940d61ff8fbc0a5a3f14fd41b3218179e73fff84 bitcoin-28.1-win64-setup.exe
22+
0a334e4ddc996bc0faee95c59d95de5d5474d7007f4a222d49affb7622dfc928 bitcoin-28.1-win64-debug.zip
23+
3cc071e939bef7437544d73d3c539ff6bc14c03fff555b4ef3d524d4a347f805 bitcoin-28.1-win64-setup-unsigned.exe
24+
029b54a0181e7892f445113f6d8989aee06c096f6db3ce60ba2b2e877150b76c bitcoin-28.1-win64-unsigned.tar.gz
25+
2d636ad562b347c96d36870d6ed810f4a364f446ca208258299f41048b35eab0 bitcoin-28.1-win64.zip

node/src/client_versions.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
#![allow(unused_imports)] // Not all users need the json types.
88

9-
#[cfg(feature = "28_0")]
9+
#[cfg(feature = "28_1")]
10+
pub use corepc_client::{client_sync::v28::*, types::v28 as vtype};
11+
12+
#[cfg(all(feature = "28_0", not(feature = "28_1")))]
1013
pub use corepc_client::{client_sync::v28::*, types::v28 as vtype};
1114

1215
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
@@ -57,6 +60,7 @@ pub use corepc_client::{client_sync::v17::*, types::v17 as vtype};
5760
/// This is meaningless but we need it otherwise we can't get far enough into
5861
/// the build process to trigger the `compile_error!` in `./versions.rs`.
5962
#[cfg(all(
63+
not(feature = "28_1"),
6064
not(feature = "28_0"),
6165
not(feature = "27_2"),
6266
not(feature = "27_1"),

node/src/versions.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// An explicit version of Bitcoin Core must be selected by enabling some feature.
22
// We check this here instead of in `lib.rs` because this file is included in `build.rs`.
33
#[cfg(all(
4+
not(feature = "28_1"),
45
not(feature = "28_0"),
56
not(feature = "27_2"),
67
not(feature = "27_1"),
@@ -20,8 +21,11 @@
2021
))]
2122
compile_error!("enable a feature in order to select the version of Bitcoin Core to use");
2223

23-
#[cfg(feature = "28_0")]
24+
#[cfg(feature = "28_1")]
2425
#[allow(dead_code)] // Triggers in --all-features builds.
26+
pub const VERSION: &str = "28.1";
27+
28+
#[cfg(all(feature = "28_0", not(feature = "28_1")))]
2529
pub const VERSION: &str = "28.0";
2630

2731
#[cfg(all(feature = "27_2", not(feature = "28_0")))]
@@ -72,6 +76,7 @@ pub const VERSION: &str = "0.17.2";
7276
/// This is meaningless but we need it otherwise we can't get far enough into
7377
/// the build process to trigger the `compile_error!` in `./versions.rs`.
7478
#[cfg(all(
79+
not(feature = "28_1"),
7580
not(feature = "28_0"),
7681
not(feature = "27_2"),
7782
not(feature = "27_1"),

0 commit comments

Comments
 (0)