From 7f7200986b4b788dad4d75f0531314e0a917e1f7 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Fri, 29 Mar 2024 08:23:08 +0000 Subject: [PATCH] merge bitcoin-core/gui#526: Add address relay/processed/rate-limited fields to peer details --- src/qt/forms/debugwindow.ui | 82 ++++++++++++++++++++++++++++++++++++- src/qt/rpcconsole.cpp | 3 ++ 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 90f6d8eb34..c4e9239b53 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -1270,10 +1270,10 @@ - Elapsed time since a novel transaction accepted into our mempool was received from this peer. + Elapsed time since a novel transaction accepted into our mempool was received from this peer. - Last Tx + Last Transaction @@ -1507,6 +1507,84 @@ + + + Whether we relay addresses to this peer. + + + Address Relay + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + Total number of addresses processed, excluding those dropped due to rate-limiting. + + + Addresses Processed + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + Total number of addresses dropped due to rate-limiting. + + + Addresses Rate-Limited + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + Qt::Vertical diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index cb780420f0..069f98e3ec 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1292,6 +1292,9 @@ 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 ? "Yes" : "No"); + ui->peerAddrProcessed->setText(QString::number(stats->nodeStateStats.m_addr_processed)); + ui->peerAddrRateLimited->setText(QString::number(stats->nodeStateStats.m_addr_rate_limited)); } ui->detailWidget->show();