@@ -116,6 +116,8 @@ static RPCHelpMan getpeerinfo()
116
116
{RPCResult::Type::NUM, " version" , " The peer version, such as 70001" },
117
117
{RPCResult::Type::STR, " subver" , " The string version" },
118
118
{RPCResult::Type::BOOL, " inbound" , " Inbound (true) or Outbound (false)" },
119
+ {RPCResult::Type::BOOL, " bip152_hb_to" , " Whether we selected peer as (compact blocks) high-bandwidth peer" },
120
+ {RPCResult::Type::BOOL, " bip152_hb_from" , " Whether peer selected us as (compact blocks) high-bandwidth peer" },
119
121
{RPCResult::Type::BOOL, " addnode" , " Whether connection was due to addnode/-connect or if it was an automatic/inbound connection\n "
120
122
" (DEPRECATED, returned only if the config option -deprecatedrpc=getpeerinfo_addnode is passed)" },
121
123
{RPCResult::Type::STR, " connection_type" , " Type of connection: \n " + Join (CONNECTION_TYPE_DOC, " ,\n " ) + " ." },
@@ -198,6 +200,8 @@ static RPCHelpMan getpeerinfo()
198
200
// their ver message.
199
201
obj.pushKV (" subver" , stats.cleanSubVer );
200
202
obj.pushKV (" inbound" , stats.fInbound );
203
+ obj.pushKV (" bip152_hb_to" , stats.m_bip152_highbandwidth_to );
204
+ obj.pushKV (" bip152_hb_from" , stats.m_bip152_highbandwidth_from );
201
205
if (IsDeprecatedRPCEnabled (" getpeerinfo_addnode" )) {
202
206
// addnode is deprecated in v0.21 for removal in v0.22
203
207
obj.pushKV (" addnode" , stats.m_manual_connection );
0 commit comments