Skip to content

Commit f68c6ce

Browse files
committed
net: use clientInterface rather than uiInterface
1 parent b5c468c commit f68c6ce

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/net.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,9 @@ void CConnman::NotifyNumConnectionsChanged()
13041304
}
13051305
if(vNodesSize != nPrevNodeCount) {
13061306
nPrevNodeCount = vNodesSize;
1307-
if(clientInterface)
1307+
if (clientInterface) {
13081308
clientInterface->NotifyNumConnectionsChanged(vNodesSize);
1309+
}
13091310
}
13101311
}
13111312

@@ -2448,7 +2449,9 @@ void CConnman::SetNetworkActive(bool active)
24482449

24492450
fNetworkActive = active;
24502451

2451-
uiInterface.NotifyNetworkActiveChanged(fNetworkActive);
2452+
if (clientInterface) {
2453+
clientInterface->NotifyNetworkActiveChanged(fNetworkActive);
2454+
}
24522455
}
24532456

24542457
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)
25562559
LogPrintf("%i block-relay-only anchors will be tried for connections.\n", m_anchors.size());
25572560
}
25582561

2559-
uiInterface.InitMessage(_("Starting network threads…").translated);
2562+
if (clientInterface) {
2563+
clientInterface->InitMessage(_("Starting network threads…").translated);
2564+
}
25602565

25612566
fAddressesInitialized = true;
25622567

0 commit comments

Comments
 (0)