diff --git a/json/src/lib.rs b/json/src/lib.rs index 57e33a3e..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 @@ -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)]