Added element limits for queue and lists (#162)

This commit is contained in:
Chalith Desaman
2020-11-24 13:17:53 +05:30
committed by GitHub
parent d9517b6164
commit 459799760b
11 changed files with 137 additions and 37 deletions

View File

@@ -299,8 +299,8 @@ namespace conf
cfg.peermaxdupmpm = d["peermaxdupmpm"].as<uint64_t>();
cfg.peermaxbadmpm = d["peermaxbadmpm"].as<uint64_t>();
cfg.peermaxbadsigpm = d["peermaxbadsigpm"].as<uint64_t>();
cfg.peermaxcons = d["peermaxcons"].as<unsigned int>();
cfg.peermaxknowncons = d["peermaxknowncons"].as<unsigned int>();
cfg.peermaxcons = d["peermaxcons"].as<uint16_t>();
cfg.peermaxknowncons = d["peermaxknowncons"].as<uint16_t>();
// If peermaxknowcons is greater than peermaxcons then show error and stop execution.
if (cfg.peermaxknowncons > cfg.peermaxcons)