Skip to content

Update GetPeerInfoResultNetwork for core 22.0 #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
env: BITCOINVERSION=0.20.1
- rust: stable
env: BITCOINVERSION=0.21.0
- rust: stable
env: BITCOINVERSION=22.0

script:
- ./contrib/test.sh
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The following versions are officially supported and automatically tested:
* 0.20.0
* 0.20.1
* 0.21.0
* 22.0

# Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on **Rust 1.29**.
Expand Down
4 changes: 2 additions & 2 deletions integration_test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ PID1=$!
sleep 3

BLOCKFILTERARG=""
if bitcoind -version | grep -q "v0\.\(19\|2\)"; then
if bitcoind -version | grep -q "v\(0\.19\|0\.2\|2\)"; then
BLOCKFILTERARG="-blockfilterindex=1"
fi

FALLBACKFEEARG=""
if bitcoind -version | grep -q "v0\.2"; then
if bitcoind -version | grep -q "v\(0\.2\|2\)"; then
FALLBACKFEEARG="-fallbackfee=0.00001000"
fi

Expand Down
4 changes: 3 additions & 1 deletion json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,13 @@ pub struct GetPeerInfoResult {
}

#[derive(Copy, Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
#[serde(rename_all = "lowercase")]
#[serde(rename_all = "snake_case")]
pub enum GetPeerInfoResultNetwork {
Ipv4,
Ipv6,
Onion,
I2p,
NotPubliclyRoutable,
// this is undocumented upstream
Unroutable,
}
Expand Down