diff options
author | Jon Atack <jon@atack.com> | 2021-10-04 16:13:05 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-11-11 13:13:59 +0100 |
commit | 5bd40a3e84a35e0cdf802b132dac5725b9558f32 (patch) | |
tree | 16556c3ec5fdbd7616b29f70ec848d8aac560b24 /src/bitcoin-cli.cpp | |
parent | f63bf05e73ea96e5c2c72cc455d05ad382883c27 (diff) |
cli: add cjdns network to -addrinfo and -netinfo
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 338d32ef6b..9ebad02389 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -242,7 +242,7 @@ public: class AddrinfoRequestHandler : public BaseRequestHandler { private: - static constexpr std::array m_networks{"ipv4", "ipv6", "onion", "i2p"}; + static constexpr std::array m_networks{"ipv4", "ipv6", "onion", "i2p", "cjdns"}; int8_t NetworkStringToId(const std::string& str) const { for (size_t i = 0; i < m_networks.size(); ++i) { @@ -363,7 +363,7 @@ class NetinfoRequestHandler : public BaseRequestHandler { private: static constexpr uint8_t MAX_DETAIL_LEVEL{4}; - static constexpr std::array m_networks{"ipv4", "ipv6", "onion", "i2p"}; + static constexpr std::array m_networks{"ipv4", "ipv6", "onion", "i2p", "cjdns"}; std::array<std::array<uint16_t, m_networks.size() + 1>, 3> m_counts{{{}}}; //!< Peer counts by (in/out/total, networks/total) uint8_t m_block_relay_peers_count{0}; uint8_t m_manual_peers_count{0}; |