- add node id, ping wait, whitelisted and common height
- rephrase some labels to make them easier to understand for users


Post-0.11 utACK
utACK Will test soon.
750 | + <string>Whitelisted</string> 751 | + </property> 752 | + </widget> 753 | + </item> 754 | + <item row="0" column="2"> 755 | + <widget class="QCheckBox" name="peerWhitelisted">
Let's use yes/no here instead of a checkbox (more consistent with rest of the table)
I don't think it was introduced in this pull, but the Synced Headers, Synched Blocks and Ban Score rows blink furiously between actual values and Fetching.. all the time. I think we should display the last known value if the fetching fails.
I would prefer the checkbox – but only – if you could also set the state. Together with banning options (https://github.com/bitcoin/bitcoin/pull/6158) it would be a adequate look and feel. On the other hand, checkboxes sometimes don't really imply a change before the users presses "save" or something similar.
@jonasschnelli If I find the time I'm going to further test your ban/unban pull and would like to add a context menu for it :).
Style wise, the peers view should get an update:



@Diapolo: for banning/unbanning i think it would be more visible and more clear if the user could ban/unban over checkboxes or buttons at the peer details section (right part of the view) instead of a context menu. Context menus are not always comprehensible at first sight.
@jonasschnelli If my pull gets ACKs feel free to base a further UI polish on top, that's fine with me :). As for banning/unbanning, I think we should allow both options (click and via context menu).
Why is this failing the No Wallet build with: "No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated"
@jonasschnelli Mind taking a look at commit 3, could be interresting as this just "kicks" a node via context menu :).
Concept ACK. I had to read the code to figure out what "Ping Wait" was, so maybe a tooltip explaining that it is the duration of a currently outstanding ping?
I agree that a checkbox makes sense if the user would be able to change the value. However I don't see the point to be able to change whitelisting status on a connected node. I wouldn't want to encourage people to manually whitelist peers until they disconnect/reconnect. It's micro-management.
(I'm not against whitelist editing in the UI in itself, but not in this way, it should be more similar to the command line options)
688 | +} 689 | + 690 | +void RPCConsole::disconnectSelectedNode() 691 | +{ 692 | + QString strNode = GUIUtil::getEntryData(ui->peerWidget, 0, PeerTableModel::Address); 693 | + while (CNode *bannedNode = FindNode(strNode.toStdString())) {
Why is this a loop?
For no reason I guess ^^... will update.
Scope drift alert: let's focus here on improving the peers table, features such as kicking/banning from the peers list should be a separate feature pull.
Looks good! Tested ACK.
Nit: One thing which might be worth a short discussion: Because now there are 17 rows of key/value information this would fix the min window height to be slightly above 600px. This would break the peers window on 800x600 screens (which is okay for me, but you never know what kind of screens are used in node only wallet disabled environments).
I think a easy addition would be to deselect a selected peer if the user switches away from peers to console or net graph, etc. (or if he closes the console/debug window). This would re-allow the user to change the height of the window below 600px.
<pre> I think a easy addition would be to deselect a selected peer if the user switches away from peers to console or net graph, etc. (or if he closes the console/debug window). This would re-allow the user to change the height of the window below 600px. </pre>
@jonasschnelli Im not sure, how would that change redude the screens size?
@Diapolo: it wouldn't resize the screen automatically, but, it would allow to reduce the height/size below 600px. If you don't deselect the row, the 17row key/value will constraint the height above 600px.
@jonasschnelli See commit 3, this adds your suggestion. Switching away from peers tab clears the selection.
- add node id, ping wait, whitelisted and common height
- rephrase some labels to make them easier to understand for users
@laanwj @jonasschnelli Maybe some final ACKs :)?
ACK. Works for me.