always make 8 outbound connections even if have inbound,

limit one outbound connection per a.b.?.? range,
switch -maxconnections=#
This commit is contained in:
Satoshi Nakamoto
2010-08-10 16:03:01 +00:00
committed by Gavin Andresen
parent 8a38d5663a
commit c2fa70ddfd
4 changed files with 25 additions and 9 deletions

View File

@@ -885,7 +885,7 @@ void Lockdown(CBlockIndex* pindexNew)
printf("Lockdown: current best=%s height=%d work=%s\n", hashBestChain.ToString().substr(0,22).c_str(), nBestHeight, bnBestChainWork.ToString().c_str());
printf("Lockdown: IsLockdown()=%d\n", (IsLockdown() ? 1 : 0));
if (IsLockdown())
printf("Lockdown: WARNING: Displayed transactions may not be correct! You may need to upgrade.\n");
printf("Lockdown: WARNING: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.\n");
}