mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-06-05 01:37:03 +00:00
Minor fixes
This commit is contained in:
@@ -60,8 +60,8 @@ namespace conf
|
||||
cfg.version = version::AGENT_VERSION;
|
||||
|
||||
cfg.hp.host_address = host_addr.empty() ? "127.0.0.1" : std::string(host_addr);
|
||||
cfg.hp.init_peer_port = init_peer_port;
|
||||
cfg.hp.init_user_port = init_user_port;
|
||||
cfg.hp.init_peer_port = !init_peer_port ? 22861 : init_peer_port;
|
||||
cfg.hp.init_user_port = !init_user_port ? 26201 : init_user_port;
|
||||
|
||||
cfg.system.max_instance_count = !inst_count ? 3 : inst_count;
|
||||
cfg.system.max_mem_kbytes = !ram_kbytes ? 1048576 : ram_kbytes;
|
||||
|
||||
@@ -701,8 +701,8 @@ namespace hp
|
||||
if (config.contract.execute.has_value())
|
||||
d["contract"]["execute"] = config.contract.execute.value();
|
||||
|
||||
if (config.contract.environment.has_value())
|
||||
d["contract"]["environment"] = config.contract.environment.value();
|
||||
if (!config.contract.environment.empty())
|
||||
d["contract"]["environment"] = config.contract.environment;
|
||||
|
||||
if (config.contract.max_input_ledger_offset.has_value())
|
||||
d["contract"]["max_input_ledger_offset"] = config.contract.max_input_ledger_offset.value();
|
||||
|
||||
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
|
||||
|
||||
// This will create a new config.
|
||||
const std::string host_addr = (argc >= 4) ? argv[3] : "";
|
||||
uint16_t init_peer_port, init_user_port, docker_registry_port = 0;
|
||||
uint16_t init_peer_port = 0, init_user_port = 0, docker_registry_port = 0;
|
||||
size_t inst_count = 0, cpu_us = 0, ram_kbytes = 0, swap_kbytes = 0, disk_kbytes = 0;
|
||||
|
||||
if (((argc >= 5) && util::stoul(argv[4], init_peer_port) != 0) ||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace msg
|
||||
std::optional<uint32_t> roundtime;
|
||||
std::set<std::string> unl;
|
||||
std::optional<bool> execute;
|
||||
std::optional<std::map<std::string, std::string>> environment;
|
||||
std::map<std::string, std::string> environment;
|
||||
std::optional<uint16_t> max_input_ledger_offset;
|
||||
c_log_config log;
|
||||
consensus_config consensus;
|
||||
|
||||
Reference in New Issue
Block a user