Skip to content

Commit 1a9f462

Browse files
committed
gui, doc: rm Ban Score in GUI Peers window/release notes updates
1 parent 90b5fc9 commit 1a9f462

File tree

3 files changed

+29
-49
lines changed

3 files changed

+29
-49
lines changed

doc/release-notes.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ will trigger BIP 125 (replace-by-fee) opt-in. (#11413)
9898
- The `bumpfee` command now uses `conf_target` rather than `confTarget` in the
9999
options. (#11413)
100100

101-
- `getpeerinfo` no longer returns the `banscore` field unless the configuration
101+
- The `getpeerinfo` RPC no longer returns the `banscore` field unless the configuration
102102
option `-deprecatedrpc=banscore` is used. The `banscore` field will be fully
103103
removed in the next major release. (#19469)
104104

@@ -123,8 +123,9 @@ Updated settings
123123

124124
- The `-banscore` configuration option, which modified the default threshold for
125125
disconnecting and discouraging misbehaving peers, has been removed as part of
126-
changes in this release to the handling of misbehaving peers. Refer to the
127-
section, "Changes regarding misbehaving peers", for details. (#19464)
126+
changes in 0.20.1 and in this release to the handling of misbehaving peers.
127+
Refer to "Changes regarding misbehaving peers" in the 0.20.1 release notes for
128+
details. (#19464)
128129

129130
- The `-debug=db` logging category, which was deprecated in 0.20 and replaced by
130131
`-debug=walletdb` to distinguish it from `coindb`, has been removed. (#19202)
@@ -303,6 +304,11 @@ issue.
303304
GUI changes
304305
-----------
305306

307+
- The GUI Peers window no longer displays a "Ban Score" field. This is part of
308+
changes in 0.20.1 and in this release to the handling of misbehaving
309+
peers. Refer to "Changes regarding misbehaving peers" in the 0.20.1 release
310+
notes for details. (#19512)
311+
306312
Low-level changes
307313
=================
308314

src/qt/forms/debugwindow.ui

Lines changed: 20 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,36 +1264,13 @@
12641264
</widget>
12651265
</item>
12661266
<item row="8" column="0">
1267-
<widget class="QLabel" name="label_24">
1268-
<property name="text">
1269-
<string>Ban Score</string>
1270-
</property>
1271-
</widget>
1272-
</item>
1273-
<item row="8" column="1">
1274-
<widget class="QLabel" name="peerBanScore">
1275-
<property name="cursor">
1276-
<cursorShape>IBeamCursor</cursorShape>
1277-
</property>
1278-
<property name="text">
1279-
<string>N/A</string>
1280-
</property>
1281-
<property name="textFormat">
1282-
<enum>Qt::PlainText</enum>
1283-
</property>
1284-
<property name="textInteractionFlags">
1285-
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
1286-
</property>
1287-
</widget>
1288-
</item>
1289-
<item row="9" column="0">
12901267
<widget class="QLabel" name="label_22">
12911268
<property name="text">
12921269
<string>Connection Time</string>
12931270
</property>
12941271
</widget>
12951272
</item>
1296-
<item row="9" column="1">
1273+
<item row="8" column="1">
12971274
<widget class="QLabel" name="peerConnTime">
12981275
<property name="cursor">
12991276
<cursorShape>IBeamCursor</cursorShape>
@@ -1309,14 +1286,14 @@
13091286
</property>
13101287
</widget>
13111288
</item>
1312-
<item row="10" column="0">
1289+
<item row="9" column="0">
13131290
<widget class="QLabel" name="label_15">
13141291
<property name="text">
13151292
<string>Last Send</string>
13161293
</property>
13171294
</widget>
13181295
</item>
1319-
<item row="10" column="1">
1296+
<item row="9" column="1">
13201297
<widget class="QLabel" name="peerLastSend">
13211298
<property name="cursor">
13221299
<cursorShape>IBeamCursor</cursorShape>
@@ -1332,14 +1309,14 @@
13321309
</property>
13331310
</widget>
13341311
</item>
1335-
<item row="11" column="0">
1312+
<item row="10" column="0">
13361313
<widget class="QLabel" name="label_19">
13371314
<property name="text">
13381315
<string>Last Receive</string>
13391316
</property>
13401317
</widget>
13411318
</item>
1342-
<item row="11" column="1">
1319+
<item row="10" column="1">
13431320
<widget class="QLabel" name="peerLastRecv">
13441321
<property name="cursor">
13451322
<cursorShape>IBeamCursor</cursorShape>
@@ -1355,14 +1332,14 @@
13551332
</property>
13561333
</widget>
13571334
</item>
1358-
<item row="12" column="0">
1335+
<item row="11" column="0">
13591336
<widget class="QLabel" name="label_18">
13601337
<property name="text">
13611338
<string>Sent</string>
13621339
</property>
13631340
</widget>
13641341
</item>
1365-
<item row="12" column="1">
1342+
<item row="11" column="1">
13661343
<widget class="QLabel" name="peerBytesSent">
13671344
<property name="cursor">
13681345
<cursorShape>IBeamCursor</cursorShape>
@@ -1378,14 +1355,14 @@
13781355
</property>
13791356
</widget>
13801357
</item>
1381-
<item row="13" column="0">
1358+
<item row="12" column="0">
13821359
<widget class="QLabel" name="label_20">
13831360
<property name="text">
13841361
<string>Received</string>
13851362
</property>
13861363
</widget>
13871364
</item>
1388-
<item row="13" column="1">
1365+
<item row="12" column="1">
13891366
<widget class="QLabel" name="peerBytesRecv">
13901367
<property name="cursor">
13911368
<cursorShape>IBeamCursor</cursorShape>
@@ -1401,14 +1378,14 @@
14011378
</property>
14021379
</widget>
14031380
</item>
1404-
<item row="14" column="0">
1381+
<item row="13" column="0">
14051382
<widget class="QLabel" name="label_26">
14061383
<property name="text">
14071384
<string>Ping Time</string>
14081385
</property>
14091386
</widget>
14101387
</item>
1411-
<item row="14" column="1">
1388+
<item row="13" column="1">
14121389
<widget class="QLabel" name="peerPingTime">
14131390
<property name="cursor">
14141391
<cursorShape>IBeamCursor</cursorShape>
@@ -1424,7 +1401,7 @@
14241401
</property>
14251402
</widget>
14261403
</item>
1427-
<item row="15" column="0">
1404+
<item row="14" column="0">
14281405
<widget class="QLabel" name="peerPingWaitLabel">
14291406
<property name="toolTip">
14301407
<string>The duration of a currently outstanding ping.</string>
@@ -1434,7 +1411,7 @@
14341411
</property>
14351412
</widget>
14361413
</item>
1437-
<item row="15" column="1">
1414+
<item row="14" column="1">
14381415
<widget class="QLabel" name="peerPingWait">
14391416
<property name="cursor">
14401417
<cursorShape>IBeamCursor</cursorShape>
@@ -1450,14 +1427,14 @@
14501427
</property>
14511428
</widget>
14521429
</item>
1453-
<item row="16" column="0">
1430+
<item row="15" column="0">
14541431
<widget class="QLabel" name="peerMinPingLabel">
14551432
<property name="text">
14561433
<string>Min Ping</string>
14571434
</property>
14581435
</widget>
14591436
</item>
1460-
<item row="16" column="1">
1437+
<item row="15" column="1">
14611438
<widget class="QLabel" name="peerMinPing">
14621439
<property name="cursor">
14631440
<cursorShape>IBeamCursor</cursorShape>
@@ -1473,14 +1450,14 @@
14731450
</property>
14741451
</widget>
14751452
</item>
1476-
<item row="17" column="0">
1453+
<item row="16" column="0">
14771454
<widget class="QLabel" name="label_timeoffset">
14781455
<property name="text">
14791456
<string>Time Offset</string>
14801457
</property>
14811458
</widget>
14821459
</item>
1483-
<item row="17" column="1">
1460+
<item row="16" column="1">
14841461
<widget class="QLabel" name="timeoffset">
14851462
<property name="cursor">
14861463
<cursorShape>IBeamCursor</cursorShape>
@@ -1496,7 +1473,7 @@
14961473
</property>
14971474
</widget>
14981475
</item>
1499-
<item row="18" column="0">
1476+
<item row="17" column="0">
15001477
<widget class="QLabel" name="peerMappedASLabel">
15011478
<property name="toolTip">
15021479
<string>The mapped Autonomous System used for diversifying peer selection.</string>
@@ -1506,7 +1483,7 @@
15061483
</property>
15071484
</widget>
15081485
</item>
1509-
<item row="18" column="1">
1486+
<item row="17" column="1">
15101487
<widget class="QLabel" name="peerMappedAS">
15111488
<property name="cursor">
15121489
<cursorShape>IBeamCursor</cursorShape>
@@ -1522,7 +1499,7 @@
15221499
</property>
15231500
</widget>
15241501
</item>
1525-
<item row="19" column="0">
1502+
<item row="18" column="0">
15261503
<spacer name="verticalSpacer_3">
15271504
<property name="orientation">
15281505
<enum>Qt::Vertical</enum>

src/qt/rpcconsole.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,6 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
11261126
// This check fails for example if the lock was busy and
11271127
// nodeStateStats couldn't be fetched.
11281128
if (stats->fNodeStateStatsAvailable) {
1129-
// Ban score is init to 0
1130-
ui->peerBanScore->setText(QString("%1").arg(stats->nodeStateStats.nMisbehavior));
1131-
11321129
// Sync height is init to -1
11331130
if (stats->nodeStateStats.nSyncHeight > -1)
11341131
ui->peerSyncHeight->setText(QString("%1").arg(stats->nodeStateStats.nSyncHeight));

0 commit comments

Comments
 (0)