Skip to content

Commit 2c19ba2

Browse files
committed
gui: replace Direction with Connection Type in peer details
1 parent 7e2beab commit 2c19ba2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,14 +1077,17 @@
10771077
</widget>
10781078
</item>
10791079
<item row="1" column="0">
1080-
<widget class="QLabel" name="label_23">
1080+
<widget class="QLabel" name="peerConnectionTypeLabel">
1081+
<property name="toolTip">
1082+
<string>The type of peer connection:&lt;ul&gt;&lt;li&gt;Inbound: initiated by peer&lt;/li&gt;&lt;li&gt;Outbound Full Relay: default&lt;/li&gt;&lt;li&gt;Outbound Block Relay: does not relay transactions or addresses&lt;/li&gt;&lt;li&gt;Outbound Manual: added using RPC addnode or -addnode/-connect configuration options&lt;/li&gt;&lt;li&gt;Outbound Feeler: short-lived, for testing addresses&lt;/li&gt;&lt;li&gt;Outbound Address Fetch: short-lived, for soliciting addresses&lt;/li&gt;&lt;/ul&gt;</string>
1083+
</property>
10811084
<property name="text">
1082-
<string>Direction</string>
1085+
<string>Connection Type</string>
10831086
</property>
10841087
</widget>
10851088
</item>
10861089
<item row="1" column="1">
1087-
<widget class="QLabel" name="peerDirection">
1090+
<widget class="QLabel" name="peerConnectionType">
10881091
<property name="cursor">
10891092
<cursorShape>IBeamCursor</cursorShape>
10901093
</property>

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ void RPCConsole::updateDetailWidget()
11111111
ui->timeoffset->setText(GUIUtil::formatTimeOffset(stats->nodeStats.nTimeOffset));
11121112
ui->peerVersion->setText(QString::number(stats->nodeStats.nVersion));
11131113
ui->peerSubversion->setText(QString::fromStdString(stats->nodeStats.cleanSubVer));
1114-
ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
1114+
ui->peerConnectionType->setText(GUIUtil::ConnectionTypeToQString(stats->nodeStats.m_conn_type));
11151115
ui->peerNetwork->setText(GUIUtil::NetworkToQString(stats->nodeStats.m_network));
11161116
if (stats->nodeStats.m_permissionFlags == PF_NONE) {
11171117
ui->peerPermissions->setText(tr("N/A"));

0 commit comments

Comments
 (0)