This was initially proposed in #179 and saw an enthusiastic reception with several ACKs. One contributor was a weak NACK due to the horizontal space and so this was temporarily dropped, but since then #202 (and soon #256 and #293) resolve the issue. Moreover, the current state of displaying only a connection Type
column without a connection Direction
column is confusing (e.g. https://github.com/bitcoin/bitcoin/issues/21747#issuecomment-825072559), particularly as both the direction and the type are displayed in the peer details area with the Direction/Type
row.
This patch fixes it and completes the initial proposal in #179 by adding a Direction
column, making the peers tab the same as the Direction/Type
row in the peer details and the direction and type columns in our other user-facing peer connections table in -netinfo
.
Users can now sort the peers table by direction. The default sort is set to inbound, then outbound.
This patch also makes the direction and type translations the same for the 3 places where they are used (the peers column, the peer details row, and its tooltip), adds translator comments to link them together, and adds QStringBuilder fast QString concatenation with the %
operator.