mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Restructured user message handling.
This commit is contained in:
11
src/conf.cpp
11
src/conf.cpp
@@ -99,10 +99,10 @@ int create_contract()
|
||||
cfg.peerport = 22860;
|
||||
cfg.roundtime = 1000;
|
||||
cfg.pubport = 8080;
|
||||
cfg.pubmaxsize = 65536;
|
||||
cfg.pubmaxcpm = 1000;
|
||||
cfg.peermaxsize = 65536;
|
||||
cfg.peermaxcpm = 1000;
|
||||
cfg.pubmaxsize = 0;
|
||||
cfg.pubmaxcpm = 0;
|
||||
cfg.peermaxsize = 0;
|
||||
cfg.peermaxcpm = 0;
|
||||
|
||||
#ifndef NDEBUG
|
||||
cfg.loglevel = "debug";
|
||||
@@ -403,8 +403,7 @@ int validate_config()
|
||||
|
||||
// Other required fields.
|
||||
if (cfg.binary.empty() || cfg.listenip.empty() ||
|
||||
cfg.peerport == 0 || cfg.roundtime == 0 || cfg.pubport == 0 || cfg.pubmaxsize == 0 || cfg.pubmaxcpm == 0 || cfg.peermaxsize == 0 ||
|
||||
cfg.peermaxcpm == 0 || cfg.loglevel.empty() || cfg.loggers.empty())
|
||||
cfg.peerport == 0 || cfg.roundtime == 0 || cfg.pubport == 0 || cfg.loglevel.empty() || cfg.loggers.empty())
|
||||
{
|
||||
std::cout << "Required configuration fields missing at " << ctx.configFile << std::endl;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user