X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Faddrman.cpp;h=f24e7e78202c89d64b4a6354ce6ebd65e2832215;hb=63e4509c569f16145ab861717baf865fc6d05af1;hp=ed17c39f1c74fd83341fa4d1a882723957330536;hpb=576f3bde12e58e1b1a3c429955bcd7b92860169a;p=novacoin.git 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];