Skip to content

Commit 4132ad3

Browse files
author
wodry
committed
Show symbol for inbound/outbound in peer table
1 parent 3a45493 commit 4132ad3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/peertablemodel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const
162162
case NetNodeId:
163163
return (qint64)rec->nodeStats.nodeid;
164164
case Address:
165-
return QString::fromStdString(rec->nodeStats.addrName);
165+
// prepend to peer address down-arrow symbol for inbound connection and up-arrow for outbound connection
166+
return QString(rec->nodeStats.fInbound ? "" : "") + QString::fromStdString(rec->nodeStats.addrName);
166167
case Subversion:
167168
return QString::fromStdString(rec->nodeStats.cleanSubVer);
168169
case Ping:

0 commit comments

Comments
 (0)