Skip to content

Commit 9476886

Browse files
committed
gui: display fRelayTxes in peer details
1 parent 6c61408 commit 9476886

File tree

2 files changed

+53
-26
lines changed

2 files changed

+53
-26
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,13 +1198,39 @@
11981198
</widget>
11991199
</item>
12001200
<item row="6" column="0">
1201+
<widget class="QLabel" name="peerRelayTxesLabel">
1202+
<property name="toolTip">
1203+
<string>Whether the peer requested us to relay transactions.</string>
1204+
</property>
1205+
<property name="text">
1206+
<string>Wants Tx Relay</string>
1207+
</property>
1208+
</widget>
1209+
</item>
1210+
<item row="6" column="1">
1211+
<widget class="QLabel" name="peerRelayTxes">
1212+
<property name="cursor">
1213+
<cursorShape>IBeamCursor</cursorShape>
1214+
</property>
1215+
<property name="text">
1216+
<string>N/A</string>
1217+
</property>
1218+
<property name="textFormat">
1219+
<enum>Qt::PlainText</enum>
1220+
</property>
1221+
<property name="textInteractionFlags">
1222+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
1223+
</property>
1224+
</widget>
1225+
</item>
1226+
<item row="7" column="0">
12011227
<widget class="QLabel" name="label_29">
12021228
<property name="text">
12031229
<string>Starting Block</string>
12041230
</property>
12051231
</widget>
12061232
</item>
1207-
<item row="6" column="1">
1233+
<item row="7" column="1">
12081234
<widget class="QLabel" name="peerHeight">
12091235
<property name="cursor">
12101236
<cursorShape>IBeamCursor</cursorShape>
@@ -1220,14 +1246,14 @@
12201246
</property>
12211247
</widget>
12221248
</item>
1223-
<item row="7" column="0">
1249+
<item row="8" column="0">
12241250
<widget class="QLabel" name="label_27">
12251251
<property name="text">
12261252
<string>Synced Headers</string>
12271253
</property>
12281254
</widget>
12291255
</item>
1230-
<item row="7" column="1">
1256+
<item row="8" column="1">
12311257
<widget class="QLabel" name="peerSyncHeight">
12321258
<property name="cursor">
12331259
<cursorShape>IBeamCursor</cursorShape>
@@ -1243,14 +1269,14 @@
12431269
</property>
12441270
</widget>
12451271
</item>
1246-
<item row="8" column="0">
1272+
<item row="9" column="0">
12471273
<widget class="QLabel" name="label_25">
12481274
<property name="text">
12491275
<string>Synced Blocks</string>
12501276
</property>
12511277
</widget>
12521278
</item>
1253-
<item row="8" column="1">
1279+
<item row="9" column="1">
12541280
<widget class="QLabel" name="peerCommonHeight">
12551281
<property name="cursor">
12561282
<cursorShape>IBeamCursor</cursorShape>
@@ -1266,14 +1292,14 @@
12661292
</property>
12671293
</widget>
12681294
</item>
1269-
<item row="9" column="0">
1295+
<item row="10" column="0">
12701296
<widget class="QLabel" name="label_22">
12711297
<property name="text">
12721298
<string>Connection Time</string>
12731299
</property>
12741300
</widget>
12751301
</item>
1276-
<item row="9" column="1">
1302+
<item row="10" column="1">
12771303
<widget class="QLabel" name="peerConnTime">
12781304
<property name="cursor">
12791305
<cursorShape>IBeamCursor</cursorShape>
@@ -1289,14 +1315,14 @@
12891315
</property>
12901316
</widget>
12911317
</item>
1292-
<item row="10" column="0">
1318+
<item row="11" column="0">
12931319
<widget class="QLabel" name="label_15">
12941320
<property name="text">
12951321
<string>Last Send</string>
12961322
</property>
12971323
</widget>
12981324
</item>
1299-
<item row="10" column="1">
1325+
<item row="11" column="1">
13001326
<widget class="QLabel" name="peerLastSend">
13011327
<property name="cursor">
13021328
<cursorShape>IBeamCursor</cursorShape>
@@ -1312,14 +1338,14 @@
13121338
</property>
13131339
</widget>
13141340
</item>
1315-
<item row="11" column="0">
1341+
<item row="12" column="0">
13161342
<widget class="QLabel" name="label_19">
13171343
<property name="text">
13181344
<string>Last Receive</string>
13191345
</property>
13201346
</widget>
13211347
</item>
1322-
<item row="11" column="1">
1348+
<item row="12" column="1">
13231349
<widget class="QLabel" name="peerLastRecv">
13241350
<property name="cursor">
13251351
<cursorShape>IBeamCursor</cursorShape>
@@ -1335,14 +1361,14 @@
13351361
</property>
13361362
</widget>
13371363
</item>
1338-
<item row="12" column="0">
1364+
<item row="13" column="0">
13391365
<widget class="QLabel" name="label_18">
13401366
<property name="text">
13411367
<string>Sent</string>
13421368
</property>
13431369
</widget>
13441370
</item>
1345-
<item row="12" column="1">
1371+
<item row="13" column="1">
13461372
<widget class="QLabel" name="peerBytesSent">
13471373
<property name="cursor">
13481374
<cursorShape>IBeamCursor</cursorShape>
@@ -1358,14 +1384,14 @@
13581384
</property>
13591385
</widget>
13601386
</item>
1361-
<item row="13" column="0">
1387+
<item row="14" column="0">
13621388
<widget class="QLabel" name="label_20">
13631389
<property name="text">
13641390
<string>Received</string>
13651391
</property>
13661392
</widget>
13671393
</item>
1368-
<item row="13" column="1">
1394+
<item row="14" column="1">
13691395
<widget class="QLabel" name="peerBytesRecv">
13701396
<property name="cursor">
13711397
<cursorShape>IBeamCursor</cursorShape>
@@ -1381,14 +1407,14 @@
13811407
</property>
13821408
</widget>
13831409
</item>
1384-
<item row="14" column="0">
1410+
<item row="15" column="0">
13851411
<widget class="QLabel" name="label_26">
13861412
<property name="text">
13871413
<string>Ping Time</string>
13881414
</property>
13891415
</widget>
13901416
</item>
1391-
<item row="14" column="1">
1417+
<item row="15" column="1">
13921418
<widget class="QLabel" name="peerPingTime">
13931419
<property name="cursor">
13941420
<cursorShape>IBeamCursor</cursorShape>
@@ -1404,7 +1430,7 @@
14041430
</property>
14051431
</widget>
14061432
</item>
1407-
<item row="15" column="0">
1433+
<item row="16" column="0">
14081434
<widget class="QLabel" name="peerPingWaitLabel">
14091435
<property name="toolTip">
14101436
<string>The duration of a currently outstanding ping.</string>
@@ -1414,7 +1440,7 @@
14141440
</property>
14151441
</widget>
14161442
</item>
1417-
<item row="15" column="1">
1443+
<item row="16" column="1">
14181444
<widget class="QLabel" name="peerPingWait">
14191445
<property name="cursor">
14201446
<cursorShape>IBeamCursor</cursorShape>
@@ -1430,14 +1456,14 @@
14301456
</property>
14311457
</widget>
14321458
</item>
1433-
<item row="16" column="0">
1459+
<item row="17" column="0">
14341460
<widget class="QLabel" name="peerMinPingLabel">
14351461
<property name="text">
14361462
<string>Min Ping</string>
14371463
</property>
14381464
</widget>
14391465
</item>
1440-
<item row="16" column="1">
1466+
<item row="17" column="1">
14411467
<widget class="QLabel" name="peerMinPing">
14421468
<property name="cursor">
14431469
<cursorShape>IBeamCursor</cursorShape>
@@ -1453,14 +1479,14 @@
14531479
</property>
14541480
</widget>
14551481
</item>
1456-
<item row="17" column="0">
1482+
<item row="18" column="0">
14571483
<widget class="QLabel" name="label_timeoffset">
14581484
<property name="text">
14591485
<string>Time Offset</string>
14601486
</property>
14611487
</widget>
14621488
</item>
1463-
<item row="17" column="1">
1489+
<item row="18" column="1">
14641490
<widget class="QLabel" name="timeoffset">
14651491
<property name="cursor">
14661492
<cursorShape>IBeamCursor</cursorShape>
@@ -1476,7 +1502,7 @@
14761502
</property>
14771503
</widget>
14781504
</item>
1479-
<item row="18" column="0">
1505+
<item row="19" column="0">
14801506
<widget class="QLabel" name="peerMappedASLabel">
14811507
<property name="toolTip">
14821508
<string>The mapped Autonomous System used for diversifying peer selection.</string>
@@ -1486,7 +1512,7 @@
14861512
</property>
14871513
</widget>
14881514
</item>
1489-
<item row="18" column="1">
1515+
<item row="19" column="1">
14901516
<widget class="QLabel" name="peerMappedAS">
14911517
<property name="cursor">
14921518
<cursorShape>IBeamCursor</cursorShape>
@@ -1502,7 +1528,7 @@
15021528
</property>
15031529
</widget>
15041530
</item>
1505-
<item row="19" column="0">
1531+
<item row="20" column="0">
15061532
<spacer name="verticalSpacer_3">
15071533
<property name="orientation">
15081534
<enum>Qt::Vertical</enum>

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ void RPCConsole::updateDetailWidget()
11091109
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
11101110
ui->peerHeading->setText(peerAddrDetails);
11111111
ui->peerServices->setText(GUIUtil::formatServicesStr(stats->nodeStats.nServices));
1112+
ui->peerRelayTxes->setText(stats->nodeStats.fRelayTxes ? "Yes" : "No");
11121113
ui->peerLastSend->setText(stats->nodeStats.nLastSend ? GUIUtil::formatDurationStr(GetSystemTimeInSeconds() - stats->nodeStats.nLastSend) : tr("never"));
11131114
ui->peerLastRecv->setText(stats->nodeStats.nLastRecv ? GUIUtil::formatDurationStr(GetSystemTimeInSeconds() - stats->nodeStats.nLastRecv) : tr("never"));
11141115
ui->peerBytesSent->setText(GUIUtil::formatBytes(stats->nodeStats.nSendBytes));

0 commit comments

Comments
 (0)