diff options
| author | wodry <[email protected]> | 2018-06-24 22:09:01 +0200 |
|---|---|---|
| committer | wodry <[email protected]> | 2018-06-26 19:39:12 +0200 |
| commit | 4132ad3bfa5b5ead3f4a592d819d0097881b4827 (patch) | |
| tree | 517cf0841500b85468064e95f6174a531004dcf1 /src | |
| parent | Merge #13512: [qa] mininode: Expose connection state through is_connected (diff) | |
| download | discoin-4132ad3bfa5b5ead3f4a592d819d0097881b4827.tar.xz discoin-4132ad3bfa5b5ead3f4a592d819d0097881b4827.zip | |
Show symbol for inbound/outbound in peer table
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/peertablemodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp index 7e318e303..a1e2cb713 100644 --- a/src/qt/peertablemodel.cpp +++ b/src/qt/peertablemodel.cpp @@ -162,7 +162,8 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const case NetNodeId: return (qint64)rec->nodeStats.nodeid; case Address: - return QString::fromStdString(rec->nodeStats.addrName); + // prepend to peer address down-arrow symbol for inbound connection and up-arrow for outbound connection + return QString(rec->nodeStats.fInbound ? "↓ " : "↑ ") + QString::fromStdString(rec->nodeStats.addrName); case Subversion: return QString::fromStdString(rec->nodeStats.cleanSubVer); case Ping: |