1118 | @@ -1118,6 +1119,9 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
1119 | ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
1120 | ui->peerHeight->setText(QString("%1").arg(QString::number(stats->nodeStats.nStartingHeight)));
1121 | ui->peerWhitelisted->setText(stats->nodeStats.m_legacyWhitelisted ? tr("Yes") : tr("No"));
1122 | + if (stats->nodeStats.m_mapped_as != 0) {
1123 | + ui->peerMappedAS->setText(QString("%1").arg(QString::number(stats->nodeStats.m_mapped_as)));
1124 | + }
I think you need to set something here in the case of 0 as well (otherwise, old info will stick around).
Thanks. It looks like in the case of 0 it already falls back to the "N/A" value in debugwindow.ui::1521
<property name="text">
<string>N/A</string>
</property>
Yes, you have to reset to default N/A label.
Deferring to your experience here. Done.