mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27: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:
@@ -168,6 +168,7 @@ SF_U256 const sfDigest(access, STI_HASH256, 21, "Digest");
|
||||
SF_U256 const sfPayChannel(access, STI_HASH256, 22, "Channel");
|
||||
SF_U256 const sfConsensusHash(access, STI_HASH256, 23, "ConsensusHash");
|
||||
SF_U256 const sfCheckID(access, STI_HASH256, 24, "CheckID");
|
||||
SF_U256 const sfValidatedHash(access, STI_HASH256, 25, "ValidatedHash");
|
||||
|
||||
// currency amount (common)
|
||||
SF_Amount const sfAmount(access, STI_AMOUNT, 1, "Amount");
|
||||
|
||||
Reference in New Issue
Block a user