diff options
author | Jon Atack <jon@atack.com> | 2022-01-20 22:40:41 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-01-24 10:52:30 +0100 |
commit | 19623d3182d426a263ae57e8b34a8f57e905f75f (patch) | |
tree | da369532b9fc18e196b2d5b020ad8eeb59757700 | |
parent | a465a66ef209a241a4df1164d50cea97daaf4d99 (diff) | |
download | bitcoin-19623d3182d426a263ae57e8b34a8f57e905f75f.tar.xz |
gui: add "Addresses Processed" (m_addr_processed) to peer details
-rw-r--r-- | src/qt/forms/debugwindow.ui | 26 | ||||
-rw-r--r-- | src/qt/rpcconsole.cpp | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index c14af7f704..f525425a92 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -1618,6 +1618,32 @@ </widget> </item> <item row="24" column="0"> + <widget class="QLabel" name="peerAddrProcessedLabel"> + <property name="toolTip"> + <string extracomment="Tooltip text for the Addresses Processed field in the peer details area.">Total number of addresses processed, excluding those dropped due to rate-limiting.</string> + </property> + <property name="text"> + <string>Addresses Processed</string> + </property> + </widget> + </item> + <item row="24" column="1"> + <widget class="QLabel" name="peerAddrProcessed"> + <property name="cursor"> + <cursorShape>IBeamCursor</cursorShape> + </property> + <property name="text"> + <string>N/A</string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="25" column="0"> <spacer name="verticalSpacer_3"> <property name="orientation"> <enum>Qt::Vertical</enum> diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 81f0f472cf..cb3584e635 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1216,6 +1216,7 @@ void RPCConsole::updateDetailWidget() ui->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height)); ui->peerPingWait->setText(GUIUtil::formatPingTime(stats->nodeStateStats.m_ping_wait)); ui->peerAddrRelayEnabled->setText(stats->nodeStateStats.m_addr_relay_enabled ? ts.yes : ts.no); + ui->peerAddrProcessed->setText(QString::number(stats->nodeStateStats.m_addr_processed)); } ui->peersTabRightPanel->show(); |