mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve configuration handling.
- Make VALIDATORS_SITE configurable. - At bootstrap load validators.txt with out a unl_default entry. - Always merge in unl_default at start if available.
This commit is contained in:
@@ -1926,7 +1926,7 @@ Json::Value RPCServer::doUnlList(Json::Value& params)
|
||||
// Populate the UNL from a local validators.txt file.
|
||||
Json::Value RPCServer::doUnlLoad(Json::Value& params)
|
||||
{
|
||||
if (!theApp->getUNL().nodeLoad())
|
||||
if (theConfig.UNL_DEFAULT.empty() || !theApp->getUNL().nodeLoad(theConfig.UNL_DEFAULT))
|
||||
{
|
||||
return RPCError(rpcLOAD_FAILED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user