@@ -1102,12 +1102,12 @@ static RPCHelpMan getaddrmaninfo()
1102
1102
};
1103
1103
}
1104
1104
1105
- UniValue AddrmanEntryToJSON (const AddrInfo& info, CConnman& connman)
1105
+ UniValue AddrmanEntryToJSON (const AddrInfo& info, const CConnman& connman)
1106
1106
{
1107
1107
UniValue ret (UniValue::VOBJ);
1108
1108
ret.pushKV (" address" , info.ToStringAddr ());
1109
- const auto mapped_as{connman.GetMappedAS (info)};
1110
- if (mapped_as != 0 ) {
1109
+ const uint32_t mapped_as{connman.GetMappedAS (info)};
1110
+ if (mapped_as) {
1111
1111
ret.pushKV (" mapped_as" , mapped_as);
1112
1112
}
1113
1113
ret.pushKV (" port" , info.GetPort ());
@@ -1116,14 +1116,14 @@ UniValue AddrmanEntryToJSON(const AddrInfo& info, CConnman& connman)
1116
1116
ret.pushKV (" network" , GetNetworkName (info.GetNetClass ()));
1117
1117
ret.pushKV (" source" , info.source .ToStringAddr ());
1118
1118
ret.pushKV (" source_network" , GetNetworkName (info.source .GetNetClass ()));
1119
- const auto source_mapped_as{connman.GetMappedAS (info.source )};
1120
- if (source_mapped_as != 0 ) {
1119
+ const uint32_t source_mapped_as{connman.GetMappedAS (info.source )};
1120
+ if (source_mapped_as) {
1121
1121
ret.pushKV (" source_mapped_as" , source_mapped_as);
1122
1122
}
1123
1123
return ret;
1124
1124
}
1125
1125
1126
- UniValue AddrmanTableToJSON (const std::vector<std::pair<AddrInfo, AddressPosition>>& tableInfos, CConnman& connman)
1126
+ UniValue AddrmanTableToJSON (const std::vector<std::pair<AddrInfo, AddressPosition>>& tableInfos, const CConnman& connman)
1127
1127
{
1128
1128
UniValue table (UniValue::VOBJ);
1129
1129
for (const auto & e : tableInfos) {
0 commit comments