Skip to content

Commit 9aa1ec2

Browse files
committed
Add support for Core 22.0 & 23.0
1 parent 6030b61 commit 9aa1ec2

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.github/workflows/rust.yml

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
"0.20.0",
4747
"0.20.1",
4848
"0.21.0",
49+
"22.0",
50+
"23.0",
4951
]
5052
steps:
5153
- name: Checkout Crate

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ The following versions are officially supported and automatically tested:
4545
* 0.20.0
4646
* 0.20.1
4747
* 0.21.0
48+
* 22.0
49+
* 23.0
4850

4951
# Minimum Supported Rust Version (MSRV)
5052
This library should always compile with any combination of features on **Rust 1.29**.

integration_test/run.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ if bitcoind -version | grep -q "v0\.2"; then
2828
FALLBACKFEEARG="-fallbackfee=0.00001000"
2929
fi
3030

31-
bitcoind -regtest $BLOCKFILTERARG $FALLBACKFEEARG \
31+
COINSTATSINDEXARG=""
32+
if bitcoind -version | grep -q "v[2-9]"; then
33+
COINSTATSINDEXARG="-coinstatsindex=1"
34+
fi
35+
36+
bitcoind -regtest $BLOCKFILTERARG $FALLBACKFEEARG $COINSTATSINDEXARG \
3237
-datadir=${TESTDIR}/2 \
3338
-connect=127.0.0.1:12348 \
3439
-rpcport=12349 \

integration_test/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,11 @@ fn test_create_wallet(cl: &Client) {
10301030
}
10311031

10321032
fn test_get_tx_out_set_info(cl: &Client) {
1033-
cl.get_tx_out_set_info(None, None, None).unwrap();
1033+
if version() >= 220000 {
1034+
cl.get_tx_out_set_info(Some(json::TxOutSetHashType::Muhash), None, Some(true)).unwrap();
1035+
} else {
1036+
cl.get_tx_out_set_info(None, None, None).unwrap();
1037+
}
10341038
}
10351039

10361040
fn test_get_chain_tips(cl: &Client) {

0 commit comments

Comments
 (0)