Skip to content

Commit

Permalink
Add support for Core 22.0 & 23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmoody committed Jun 13, 2022
1 parent 6030b61 commit 9aa1ec2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
"0.20.0",
"0.20.1",
"0.21.0",
"22.0",
"23.0",
]
steps:
- name: Checkout Crate
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ The following versions are officially supported and automatically tested:
* 0.20.0
* 0.20.1
* 0.21.0
* 22.0
* 23.0

# Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on **Rust 1.29**.
Expand Down
7 changes: 6 additions & 1 deletion integration_test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ if bitcoind -version | grep -q "v0\.2"; then
FALLBACKFEEARG="-fallbackfee=0.00001000"
fi

bitcoind -regtest $BLOCKFILTERARG $FALLBACKFEEARG \
COINSTATSINDEXARG=""
if bitcoind -version | grep -q "v[2-9]"; then
COINSTATSINDEXARG="-coinstatsindex=1"
fi

bitcoind -regtest $BLOCKFILTERARG $FALLBACKFEEARG $COINSTATSINDEXARG \
-datadir=${TESTDIR}/2 \
-connect=127.0.0.1:12348 \
-rpcport=12349 \
Expand Down
6 changes: 5 additions & 1 deletion integration_test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,11 @@ fn test_create_wallet(cl: &Client) {
}

fn test_get_tx_out_set_info(cl: &Client) {
cl.get_tx_out_set_info(None, None, None).unwrap();
if version() >= 220000 {
cl.get_tx_out_set_info(Some(json::TxOutSetHashType::Muhash), None, Some(true)).unwrap();
} else {
cl.get_tx_out_set_info(None, None, None).unwrap();
}
}

fn test_get_chain_tips(cl: &Client) {
Expand Down

0 comments on commit 9aa1ec2

Please sign in to comment.