mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35: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:
@@ -232,7 +232,7 @@ public:
|
||||
NetClock::time_point closeTime,
|
||||
std::set<uint256> const& enabledAmendments,
|
||||
majorityAmendments_t const& majorityAmendments,
|
||||
std::vector<STValidation::pointer> const& validations) override;
|
||||
std::vector<std::shared_ptr<STValidation>> const& validations) override;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -455,7 +455,7 @@ AmendmentTableImpl::doVoting(
|
||||
NetClock::time_point closeTime,
|
||||
std::set<uint256> const& enabledAmendments,
|
||||
majorityAmendments_t const& majorityAmendments,
|
||||
std::vector<STValidation::pointer> const& valSet)
|
||||
std::vector<std::shared_ptr<STValidation>> const& valSet)
|
||||
{
|
||||
JLOG(j_.trace()) << "voting at " << closeTime.time_since_epoch().count()
|
||||
<< ": " << enabledAmendments.size() << ", "
|
||||
|
||||
Reference in New Issue
Block a user