File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
CMakeFiles/dcc_client.dir Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ void P2P::ListenerThread(int update_interval)
288288
289289 otherAddrStr = fromIPString;
290290 SetPeer (otherAddrStr);
291- std::cout << " New peer found at: " << otherAddrStr << std::endl;
292291 }
293292
294293 // If connected but different, ignore.
@@ -526,6 +525,7 @@ void P2P::ListenerThread(int update_interval)
526525
527526 p2pConnections[otherAddrStr]->height = announcedInfo[" height" ];
528527 p2pConnections[otherAddrStr]->peerList = announcedInfo[" peerList" ];
528+ p2pConnections[otherAddrStr]->testedOnline = true ;
529529
530530 messageStatus = await_first_success;
531531 if (WalletSettingValues::verbose >= 7 ) {
@@ -739,7 +739,8 @@ int P2P::OpenP2PSocket(int port)
739739
740740// Function to get random peer credentials from the peerList
741741void P2P::RandomizePeer () {
742- messageStatus = initial_connect_request;
742+ if (!isServer)
743+ messageStatus = initial_connect_request;
743744 if (p2pConnections.size () == 0 )
744745 {
745746 peerListID = DCCARK_ADDR;
@@ -872,6 +873,7 @@ void P2P::SenderThread()
872873 if (messageAttempt >= 2 ) {
873874 messageStatus = idle;
874875 messageAttempt = 0 ;
876+ otherAddrStr = " " ;
875877 continue ;
876878 }
877879 }
You can’t perform that action at this time.
0 commit comments