0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

gui: display fRelayTxes in peer details

This commit is contained in:
Jon Atack 2021-01-30 22:09:40 +01:00
parent 6c6140846f
commit 9476886353
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D
2 changed files with 72 additions and 45 deletions

View file

@ -1198,14 +1198,17 @@
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_29">
<widget class="QLabel" name="peerRelayTxesLabel">
<property name="toolTip">
<string>Whether the peer requested us to relay transactions.</string>
</property>
<property name="text">
<string>Starting Block</string>
<string>Wants Tx Relay</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLabel" name="peerHeight">
<widget class="QLabel" name="peerRelayTxes">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1221,14 +1224,14 @@
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_27">
<widget class="QLabel" name="label_29">
<property name="text">
<string>Synced Headers</string>
<string>Starting Block</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLabel" name="peerSyncHeight">
<widget class="QLabel" name="peerHeight">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1244,14 +1247,14 @@
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_25">
<widget class="QLabel" name="label_27">
<property name="text">
<string>Synced Blocks</string>
<string>Synced Headers</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLabel" name="peerCommonHeight">
<widget class="QLabel" name="peerSyncHeight">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1267,14 +1270,14 @@
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_22">
<widget class="QLabel" name="label_25">
<property name="text">
<string>Connection Time</string>
<string>Synced Blocks</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QLabel" name="peerConnTime">
<widget class="QLabel" name="peerCommonHeight">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1290,14 +1293,14 @@
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_15">
<widget class="QLabel" name="label_22">
<property name="text">
<string>Last Send</string>
<string>Connection Time</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLabel" name="peerLastSend">
<widget class="QLabel" name="peerConnTime">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1313,14 +1316,14 @@
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="label_19">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Last Receive</string>
<string>Last Send</string>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QLabel" name="peerLastRecv">
<widget class="QLabel" name="peerLastSend">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1336,14 +1339,14 @@
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="label_18">
<widget class="QLabel" name="label_19">
<property name="text">
<string>Sent</string>
<string>Last Receive</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="QLabel" name="peerBytesSent">
<widget class="QLabel" name="peerLastRecv">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1359,14 +1362,14 @@
</widget>
</item>
<item row="13" column="0">
<widget class="QLabel" name="label_20">
<widget class="QLabel" name="label_18">
<property name="text">
<string>Received</string>
<string>Sent</string>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QLabel" name="peerBytesRecv">
<widget class="QLabel" name="peerBytesSent">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1382,14 +1385,14 @@
</widget>
</item>
<item row="14" column="0">
<widget class="QLabel" name="label_26">
<widget class="QLabel" name="label_20">
<property name="text">
<string>Ping Time</string>
<string>Received</string>
</property>
</widget>
</item>
<item row="14" column="1">
<widget class="QLabel" name="peerPingTime">
<widget class="QLabel" name="peerBytesRecv">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1405,17 +1408,14 @@
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="peerPingWaitLabel">
<property name="toolTip">
<string>The duration of a currently outstanding ping.</string>
</property>
<widget class="QLabel" name="label_26">
<property name="text">
<string>Ping Wait</string>
<string>Ping Time</string>
</property>
</widget>
</item>
<item row="15" column="1">
<widget class="QLabel" name="peerPingWait">
<widget class="QLabel" name="peerPingTime">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1431,14 +1431,17 @@
</widget>
</item>
<item row="16" column="0">
<widget class="QLabel" name="peerMinPingLabel">
<widget class="QLabel" name="peerPingWaitLabel">
<property name="toolTip">
<string>The duration of a currently outstanding ping.</string>
</property>
<property name="text">
<string>Min Ping</string>
<string>Ping Wait</string>
</property>
</widget>
</item>
<item row="16" column="1">
<widget class="QLabel" name="peerMinPing">
<widget class="QLabel" name="peerPingWait">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1454,14 +1457,14 @@
</widget>
</item>
<item row="17" column="0">
<widget class="QLabel" name="label_timeoffset">
<widget class="QLabel" name="peerMinPingLabel">
<property name="text">
<string>Time Offset</string>
<string>Min Ping</string>
</property>
</widget>
</item>
<item row="17" column="1">
<widget class="QLabel" name="timeoffset">
<widget class="QLabel" name="peerMinPing">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1477,17 +1480,14 @@
</widget>
</item>
<item row="18" column="0">
<widget class="QLabel" name="peerMappedASLabel">
<property name="toolTip">
<string>The mapped Autonomous System used for diversifying peer selection.</string>
</property>
<widget class="QLabel" name="label_timeoffset">
<property name="text">
<string>Mapped AS</string>
<string>Time Offset</string>
</property>
</widget>
</item>
<item row="18" column="1">
<widget class="QLabel" name="peerMappedAS">
<widget class="QLabel" name="timeoffset">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
@ -1503,6 +1503,32 @@
</widget>
</item>
<item row="19" column="0">
<widget class="QLabel" name="peerMappedASLabel">
<property name="toolTip">
<string>The mapped Autonomous System used for diversifying peer selection.</string>
</property>
<property name="text">
<string>Mapped AS</string>
</property>
</widget>
</item>
<item row="19" column="1">
<widget class="QLabel" name="peerMappedAS">
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="text">
<string>N/A</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="20" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>

View file

@ -1109,6 +1109,7 @@ void RPCConsole::updateDetailWidget()
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
ui->peerHeading->setText(peerAddrDetails);
ui->peerServices->setText(GUIUtil::formatServicesStr(stats->nodeStats.nServices));
ui->peerRelayTxes->setText(stats->nodeStats.fRelayTxes ? "Yes" : "No");
ui->peerLastSend->setText(stats->nodeStats.nLastSend ? GUIUtil::formatDurationStr(GetSystemTimeInSeconds() - stats->nodeStats.nLastSend) : tr("never"));
ui->peerLastRecv->setText(stats->nodeStats.nLastRecv ? GUIUtil::formatDurationStr(GetSystemTimeInSeconds() - stats->nodeStats.nLastRecv) : tr("never"));
ui->peerBytesSent->setText(GUIUtil::formatBytes(stats->nodeStats.nSendBytes));