mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Fix incorrect whitespace in addrman
Leaving it as-is would be annoying because some editor fix-up the spacing when opening a file or editing it.
This commit is contained in:
parent
fa32024d51
commit
fae108ceb5
@ -507,15 +507,15 @@ int CAddrMan::Check_()
|
|||||||
|
|
||||||
for (int n = 0; n < ADDRMAN_TRIED_BUCKET_COUNT; n++) {
|
for (int n = 0; n < ADDRMAN_TRIED_BUCKET_COUNT; n++) {
|
||||||
for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
|
for (int i = 0; i < ADDRMAN_BUCKET_SIZE; i++) {
|
||||||
if (vvTried[n][i] != -1) {
|
if (vvTried[n][i] != -1) {
|
||||||
if (!setTried.count(vvTried[n][i]))
|
if (!setTried.count(vvTried[n][i]))
|
||||||
return -11;
|
return -11;
|
||||||
if (mapInfo[vvTried[n][i]].GetTriedBucket(nKey, m_asmap) != n)
|
if (mapInfo[vvTried[n][i]].GetTriedBucket(nKey, m_asmap) != n)
|
||||||
return -17;
|
return -17;
|
||||||
if (mapInfo[vvTried[n][i]].GetBucketPosition(nKey, false, n) != i)
|
if (mapInfo[vvTried[n][i]].GetBucketPosition(nKey, false, n) != i)
|
||||||
return -18;
|
return -18;
|
||||||
setTried.erase(vvTried[n][i]);
|
setTried.erase(vvTried[n][i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user