Skip to content

Commit 4a67da8

Browse files
committed
temporarily revert PeersNumByType (needs follow-up)
This is a reversion of 16f77a5 from #359 which changed code in Bitcoin Core to notify new peers by their type. That code needs to be either merged upstream to Bitcoin Core or otherwise worked-around in gui-qml. Since the actual notification from Bitcoin Core only sends an int of the TOTAL number of connections (not just OUTBOUND) whatever UI there is to display this number to the user is probably now labeled incorrectly.
1 parent e0e235b commit 4a67da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qml/models/nodemodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ void NodeModel::ConnectToNumConnectionsChangedSignal()
162162
assert(!m_handler_notify_num_peers_changed);
163163

164164
m_handler_notify_num_peers_changed = m_node.handleNotifyNumConnectionsChanged(
165-
[this](PeersNumByType new_num_peers) {
166-
setNumOutboundPeers(new_num_peers.outbound_full_relay + new_num_peers.block_relay);
165+
[this](int new_num_connections) {
166+
setNumOutboundPeers(new_num_connections);
167167
});
168168
}
169169

0 commit comments

Comments
 (0)