From 1a9f462caa63fa16d7b4415312d2032a42b3fe0b Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 8 Jul 2020 09:55:16 +0200 Subject: [PATCH] gui, doc: rm Ban Score in GUI Peers window/release notes updates --- doc/release-notes.md | 12 +++++-- src/qt/forms/debugwindow.ui | 63 ++++++++++++------------------------- src/qt/rpcconsole.cpp | 3 -- 3 files changed, 29 insertions(+), 49 deletions(-) diff --git a/doc/release-notes.md b/doc/release-notes.md index 2a2e0f9472c..23983dcd7be 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -98,7 +98,7 @@ will trigger BIP 125 (replace-by-fee) opt-in. (#11413) - The `bumpfee` command now uses `conf_target` rather than `confTarget` in the options. (#11413) -- `getpeerinfo` no longer returns the `banscore` field unless the configuration +- The `getpeerinfo` RPC no longer returns the `banscore` field unless the configuration option `-deprecatedrpc=banscore` is used. The `banscore` field will be fully removed in the next major release. (#19469) @@ -123,8 +123,9 @@ Updated settings - The `-banscore` configuration option, which modified the default threshold for disconnecting and discouraging misbehaving peers, has been removed as part of - changes in this release to the handling of misbehaving peers. Refer to the - section, "Changes regarding misbehaving peers", for details. (#19464) + changes in 0.20.1 and in this release to the handling of misbehaving peers. + Refer to "Changes regarding misbehaving peers" in the 0.20.1 release notes for + details. (#19464) - The `-debug=db` logging category, which was deprecated in 0.20 and replaced by `-debug=walletdb` to distinguish it from `coindb`, has been removed. (#19202) @@ -303,6 +304,11 @@ issue. GUI changes ----------- +- The GUI Peers window no longer displays a "Ban Score" field. This is part of + changes in 0.20.1 and in this release to the handling of misbehaving + peers. Refer to "Changes regarding misbehaving peers" in the 0.20.1 release + notes for details. (#19512) + Low-level changes ================= diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 1217ca3e2e4..4747dd6d26f 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -1264,36 +1264,13 @@ - - - Ban Score - - - - - - - IBeamCursor - - - N/A - - - Qt::PlainText - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - Connection Time - + IBeamCursor @@ -1309,14 +1286,14 @@ - + Last Send - + IBeamCursor @@ -1332,14 +1309,14 @@ - + Last Receive - + IBeamCursor @@ -1355,14 +1332,14 @@ - + Sent - + IBeamCursor @@ -1378,14 +1355,14 @@ - + Received - + IBeamCursor @@ -1401,14 +1378,14 @@ - + Ping Time - + IBeamCursor @@ -1424,7 +1401,7 @@ - + The duration of a currently outstanding ping. @@ -1434,7 +1411,7 @@ - + IBeamCursor @@ -1450,14 +1427,14 @@ - + Min Ping - + IBeamCursor @@ -1473,14 +1450,14 @@ - + Time Offset - + IBeamCursor @@ -1496,7 +1473,7 @@ - + The mapped Autonomous System used for diversifying peer selection. @@ -1506,7 +1483,7 @@ - + IBeamCursor @@ -1522,7 +1499,7 @@ - + Qt::Vertical diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 71094f7112c..694e1c2eaed 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1126,9 +1126,6 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats) // This check fails for example if the lock was busy and // nodeStateStats couldn't be fetched. if (stats->fNodeStateStatsAvailable) { - // Ban score is init to 0 - ui->peerBanScore->setText(QString("%1").arg(stats->nodeStateStats.nMisbehavior)); - // Sync height is init to -1 if (stats->nodeStateStats.nSyncHeight > -1) ui->peerSyncHeight->setText(QString("%1").arg(stats->nodeStateStats.nSyncHeight));