From daf84026888363b98096fb30ee5e79b6c6f096ea Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Mon, 13 Sep 2021 16:56:21 -0700 Subject: [PATCH 1/2] Add network variants to GetPeerInfoResultNetwork --- json/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/json/src/lib.rs b/json/src/lib.rs index 57e33a3e..1604216c 100644 --- a/json/src/lib.rs +++ b/json/src/lib.rs @@ -1071,10 +1071,12 @@ pub enum GetPeerInfoResultNetwork { Ipv4, Ipv6, Onion, - I2p, - NotPubliclyRoutable, - // this is undocumented upstream + #[deprecated] Unroutable, + NotPubliclyRoutable, + I2p, + Cjdns, + Internal, } #[derive(Copy, Serialize, Deserialize, Clone, PartialEq, Eq, Debug)] From a9cdace9aa9cb7b1b8353b5688c86fe0c81d8985 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Wed, 15 Sep 2021 08:45:46 -0700 Subject: [PATCH 2/2] Fix typo in docs for GetPeerInfoResult.network --- json/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/src/lib.rs b/json/src/lib.rs index 1604216c..cd94f6d8 100644 --- a/json/src/lib.rs +++ b/json/src/lib.rs @@ -998,7 +998,7 @@ pub struct GetPeerInfoResult { /// Local address as reported by the peer // TODO: use a type for addrlocal pub addrlocal: Option, - /// Network (ipv4, ipv6, or onion) the peer connected throug + /// Network (ipv4, ipv6, or onion) the peer connected through /// Added in Bitcoin Core v0.21 pub network: Option, /// The services offered