mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -03:00
net: use clientInterface rather than uiInterface
This commit is contained in:
parent
b5c468cfe3
commit
f68c6cebe6
1 changed files with 8 additions and 3 deletions
11
src/net.cpp
11
src/net.cpp
|
@ -1304,8 +1304,9 @@ void CConnman::NotifyNumConnectionsChanged()
|
||||||
}
|
}
|
||||||
if(vNodesSize != nPrevNodeCount) {
|
if(vNodesSize != nPrevNodeCount) {
|
||||||
nPrevNodeCount = vNodesSize;
|
nPrevNodeCount = vNodesSize;
|
||||||
if(clientInterface)
|
if (clientInterface) {
|
||||||
clientInterface->NotifyNumConnectionsChanged(vNodesSize);
|
clientInterface->NotifyNumConnectionsChanged(vNodesSize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2448,7 +2449,9 @@ void CConnman::SetNetworkActive(bool active)
|
||||||
|
|
||||||
fNetworkActive = active;
|
fNetworkActive = active;
|
||||||
|
|
||||||
uiInterface.NotifyNetworkActiveChanged(fNetworkActive);
|
if (clientInterface) {
|
||||||
|
clientInterface->NotifyNetworkActiveChanged(fNetworkActive);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In, CAddrMan& addrman_in, bool network_active)
|
CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In, CAddrMan& addrman_in, bool network_active)
|
||||||
|
@ -2556,7 +2559,9 @@ bool CConnman::Start(CScheduler& scheduler, const Options& connOptions)
|
||||||
LogPrintf("%i block-relay-only anchors will be tried for connections.\n", m_anchors.size());
|
LogPrintf("%i block-relay-only anchors will be tried for connections.\n", m_anchors.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
uiInterface.InitMessage(_("Starting network threads…").translated);
|
if (clientInterface) {
|
||||||
|
clientInterface->InitMessage(_("Starting network threads…").translated);
|
||||||
|
}
|
||||||
|
|
||||||
fAddressesInitialized = true;
|
fAddressesInitialized = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue