Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/main.cpp
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | do { | ||||
res.nBanTime = 0; | res.nBanTime = 0; | ||||
} | } | ||||
res.nClientV = node.GetClientVersion(); | res.nClientV = node.GetClientVersion(); | ||||
res.strClientV = node.GetClientSubVersion(); | res.strClientV = node.GetClientSubVersion(); | ||||
res.nHeight = node.GetStartingHeight(); | res.nHeight = node.GetStartingHeight(); | ||||
// tfm::format(std::cout, "%s: %s!!!\n", cip.ToString().c_str(), | // tfm::format(std::cout, "%s: %s!!!\n", cip.ToString().c_str(), | ||||
// ret ? "GOOD" : "BAD"); | // ret ? "GOOD" : "BAD"); | ||||
res.fGood = ret; | res.fGood = ret; | ||||
if (!res.fGood && !res.fReliable) { | |||||
res.nBanTime = 100000; | |||||
} | |||||
jasonbcox: Ditto on ALL of the above comment's points. To clarify:
* Why is this ban logic spread across 3… | |||||
} catch (std::ios_base::failure &e) { | } catch (std::ios_base::failure &e) { | ||||
res.nBanTime = 0; | res.nBanTime = 0; | ||||
res.fGood = false; | res.fGood = false; | ||||
} | } | ||||
} | } | ||||
db.ResultMany(ips); | db.ResultMany(ips); | ||||
db.Add(addr); | db.Add(addr); | ||||
▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines |
Ditto on ALL of the above comment's points. To clarify: