mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Support UNLs with future effective dates:
* Creates a version 2 of the UNL file format allowing publishers to pre-publish the next UNL while the current one is still valid. * Version 1 of the UNL file format is still valid and backward compatible. * Also causes rippled to lock down if it has no valid UNLs, similar to being amendment blocked, except reversible. * Resolves #3548 * Resolves #3470
This commit is contained in:
@@ -2117,6 +2117,18 @@ ApplicationImp::serverOkay(std::string& reason)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getOPs().isAmendmentBlocked())
|
||||
{
|
||||
reason = "Server version too old";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getOPs().isUNLBlocked())
|
||||
{
|
||||
reason = "No valid validator list available";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getOPs().getOperatingMode() < OperatingMode::SYNCING)
|
||||
{
|
||||
reason = "Not synchronized with network";
|
||||
@@ -2132,12 +2144,6 @@ ApplicationImp::serverOkay(std::string& reason)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getOPs().isAmendmentBlocked())
|
||||
{
|
||||
reason = "Server version too old";
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user