From a465a66ef209a241a4df1164d50cea97daaf4d99 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 20 Jan 2022 22:46:23 +0100 Subject: [PATCH] gui: add "Address Relay" (m_addr_relay_enabled) to peer details --- src/qt/forms/debugwindow.ui | 26 ++++++++++++++++++++++++++ src/qt/rpcconsole.cpp | 1 + 2 files changed, 27 insertions(+) diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 15e0d3fad9..c14af7f704 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -1592,6 +1592,32 @@ + + + Whether we relay addresses to this peer. + + + Address Relay + + + + + + + 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 1cadfaeeb9..81f0f472cf 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1215,6 +1215,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->peersTabRightPanel->show();