X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Faddrman.cpp;h=f24e7e78202c89d64b4a6354ce6ebd65e2832215;hp=ed17c39f1c74fd83341fa4d1a882723957330536;hb=a6eb97b7072d7c15251d0157379136f62921590b;hpb=67d0f763d75858addd4ff22063abcd329a2384fd diff --git a/src/addrman.cpp b/src/addrman.cpp index ed17c39..f24e7e7 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -398,7 +398,7 @@ CAddress CAddrMan::Select_(int nUnkBias) { // use a tried node double fChanceFactor = 1.0; - while(1) + for ( ; ; ) { int nKBucket = GetRandInt(vvTried.size()); std::vector &vTried = vvTried[nKBucket]; @@ -413,7 +413,7 @@ CAddress CAddrMan::Select_(int nUnkBias) } else { // use a new node double fChanceFactor = 1.0; - while(1) + for ( ; ; ) { int nUBucket = GetRandInt(vvNew.size()); std::set &vNew = vvNew[nUBucket];