mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
[net, trivial] explicitly use std::string for FindNode
- in OpenNetworkConnection we have a FindNode call, which gets a const char*, wheras we only have defined a FindNode for std::string
This commit is contained in:
parent
b679a6b403
commit
49b22928ee
@ -1363,7 +1363,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
|
|||||||
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
|
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
|
||||||
FindNode(addrConnect.ToStringIPPort()))
|
FindNode(addrConnect.ToStringIPPort()))
|
||||||
return false;
|
return false;
|
||||||
} else if (FindNode(pszDest))
|
} else if (FindNode(std::string(pszDest)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
CNode* pnode = ConnectNode(addrConnect, pszDest);
|
CNode* pnode = ConnectNode(addrConnect, pszDest);
|
||||||
@ -1385,7 +1385,7 @@ void ThreadMessageHandler()
|
|||||||
{
|
{
|
||||||
boost::mutex condition_mutex;
|
boost::mutex condition_mutex;
|
||||||
boost::unique_lock<boost::mutex> lock(condition_mutex);
|
boost::unique_lock<boost::mutex> lock(condition_mutex);
|
||||||
|
|
||||||
SetThreadPriority(THREAD_PRIORITY_BELOW_NORMAL);
|
SetThreadPriority(THREAD_PRIORITY_BELOW_NORMAL);
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user