mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Harden validations:
This commit introduces the "HardenedValidations" amendment which, if enabled, allows validators to include additional information in their validations that can increase the robustness of consensus. Specifically, the commit introduces a new optional field that can be set in validation messages can be used to attest to the hash of the latest ledger that a validator considers to be fully validated. Additionally, the commit leverages the previously introduced "cookie" field to improve the robustness of the network by making it possible for servers to automatically detect accidental misconfiguration which results in two or more validators using the same validation key.
This commit is contained in:
@@ -130,7 +130,7 @@ detail::supportedAmendments()
|
||||
"fixQualityUpperBound",
|
||||
"RequireFullyCanonicalSig",
|
||||
"fix1781",
|
||||
};
|
||||
"HardenedValidations"};
|
||||
return supported;
|
||||
}
|
||||
|
||||
@@ -187,6 +187,8 @@ uint256 const fixQualityUpperBound =
|
||||
uint256 const featureRequireFullyCanonicalSig =
|
||||
*getRegisteredFeature("RequireFullyCanonicalSig");
|
||||
uint256 const fix1781 = *getRegisteredFeature("fix1781");
|
||||
uint256 const featureHardenedValidations =
|
||||
*getRegisteredFeature("HardenedValidations");
|
||||
|
||||
// The following amendments have been active for at least two years.
|
||||
// Their pre-amendment code has been removed.
|
||||
|
||||
Reference in New Issue
Block a user