Skip to content

Commit a465a66

Browse files
committed
gui: add "Address Relay" (m_addr_relay_enabled) to peer details
1 parent e3ce019 commit a465a66

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
@@ -1592,6 +1592,32 @@
15921592
</widget>
15931593
</item>
15941594
<item row="23" column="0">
1595+
<widget class="QLabel" name="peerAddrRelayEnabledLabel">
1596+
<property name="toolTip">
1597+
<string extracomment="Tooltip text for the Address Relay field in the peer details area.">Whether we relay addresses to this peer.</string>
1598+
</property>
1599+
<property name="text">
1600+
<string>Address Relay</string>
1601+
</property>
1602+
</widget>
1603+
</item>
1604+
<item row="23" column="1">
1605+
<widget class="QLabel" name="peerAddrRelayEnabled">
1606+
<property name="cursor">
1607+
<cursorShape>IBeamCursor</cursorShape>
1608+
</property>
1609+
<property name="text">
1610+
<string>N/A</string>
1611+
</property>
1612+
<property name="textFormat">
1613+
<enum>Qt::PlainText</enum>
1614+
</property>
1615+
<property name="textInteractionFlags">
1616+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
1617+
</property>
1618+
</widget>
1619+
</item>
1620+
<item row="24" column="0">
15951621
<spacer name="verticalSpacer_3">
15961622
<property name="orientation">
15971623
<enum>Qt::Vertical</enum>

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ void RPCConsole::updateDetailWidget()
12151215
}
12161216
ui->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height));
12171217
ui->peerPingWait->setText(GUIUtil::formatPingTime(stats->nodeStateStats.m_ping_wait));
1218+
ui->peerAddrRelayEnabled->setText(stats->nodeStateStats.m_addr_relay_enabled ? ts.yes : ts.no);
12181219
}
12191220

12201221
ui->peersTabRightPanel->show();

0 commit comments

Comments
 (0)