Skip to content

Commit a1f33a5

Browse files
committed
gui: replace Direction with Connection Type in peer details
1 parent 8ddf5eb commit a1f33a5

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: Outbound Full Relay (default), Outbound Block Relay (does not relay transactions or addresses), Inbound (initiated by peer), Outbound Manual (added using RPC addnode or -addnode/-connect config options), Outbound Feeler (short-lived, for testing addresses), or Outbound Address Fetch (short-lived, for soliciting addresses).</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
@@ -1108,7 +1108,7 @@ void RPCConsole::updateDetailWidget()
11081108
ui->timeoffset->setText(GUIUtil::formatTimeOffset(stats->nodeStats.nTimeOffset));
11091109
ui->peerVersion->setText(QString::number(stats->nodeStats.nVersion));
11101110
ui->peerSubversion->setText(QString::fromStdString(stats->nodeStats.cleanSubVer));
1111-
ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
1111+
ui->peerConnectionType->setText(GUIUtil::ConnectionTypeToQString(stats->nodeStats.m_conn_type));
11121112
ui->peerNetwork->setText(GUIUtil::NetworkToQString(stats->nodeStats.m_network));
11131113
if (stats->nodeStats.m_permissionFlags == PF_NONE) {
11141114
ui->peerPermissions->setText(tr("N/A"));

0 commit comments

Comments
 (0)