Skip to content

Commit 6cd132d

Browse files
committed
gui: add "Addresses Rate-Limited" (m_addr_rate_limited) to peer details
1 parent 19623d3 commit 6cd132d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,32 @@
16441644
</widget>
16451645
</item>
16461646
<item row="25" column="0">
1647+
<widget class="QLabel" name="peerAddrRateLimitedLabel">
1648+
<property name="toolTip">
1649+
<string extracomment="Tooltip text for the Addresses Rate-Limited field in the peer details area.">Total number of addresses dropped due to rate-limiting.</string>
1650+
</property>
1651+
<property name="text">
1652+
<string>Addresses Rate-Limited</string>
1653+
</property>
1654+
</widget>
1655+
</item>
1656+
<item row="25" column="1">
1657+
<widget class="QLabel" name="peerAddrRateLimited">
1658+
<property name="cursor">
1659+
<cursorShape>IBeamCursor</cursorShape>
1660+
</property>
1661+
<property name="text">
1662+
<string>N/A</string>
1663+
</property>
1664+
<property name="textFormat">
1665+
<enum>Qt::PlainText</enum>
1666+
</property>
1667+
<property name="textInteractionFlags">
1668+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
1669+
</property>
1670+
</widget>
1671+
</item>
1672+
<item row="26" column="0">
16471673
<spacer name="verticalSpacer_3">
16481674
<property name="orientation">
16491675
<enum>Qt::Vertical</enum>

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@ void RPCConsole::updateDetailWidget()
12171217
ui->peerPingWait->setText(GUIUtil::formatPingTime(stats->nodeStateStats.m_ping_wait));
12181218
ui->peerAddrRelayEnabled->setText(stats->nodeStateStats.m_addr_relay_enabled ? ts.yes : ts.no);
12191219
ui->peerAddrProcessed->setText(QString::number(stats->nodeStateStats.m_addr_processed));
1220+
ui->peerAddrRateLimited->setText(QString::number(stats->nodeStateStats.m_addr_rate_limited));
12201221
}
12211222

12221223
ui->peersTabRightPanel->show();

0 commit comments

Comments
 (0)