Add cookie to validation (RIPD-1586):

Each validator will generate a random cookie on startup that it will
include in each of its validations. This will allow validators to detect
when more than one validator is accidentally operating with the same
validation keys.
This commit is contained in:
Brad Chase
2018-03-12 12:41:09 -04:00
committed by Nikolaos D. Bougalis
parent 3dc0714273
commit f7a4a94c3b
21 changed files with 313 additions and 106 deletions

View File

@@ -142,6 +142,8 @@ SF_U64 const sfExchangeRate = make::one<SF_U64::type>(&sfExchangeRate, S
SF_U64 const sfLowNode = make::one<SF_U64::type>(&sfLowNode, STI_UINT64, 7, "LowNode");
SF_U64 const sfHighNode = make::one<SF_U64::type>(&sfHighNode, STI_UINT64, 8, "HighNode");
SF_U64 const sfDestinationNode = make::one<SF_U64::type>(&sfDestinationNode, STI_UINT64, 9, "DestinationNode");
SF_U64 const sfCookie = make::one<SF_U64::type>(&sfCookie, STI_UINT64, 10,"Cookie");
// 128-bit
SF_U128 const sfEmailHash = make::one<SF_U128::type>(&sfEmailHash, STI_HASH128, 1, "EmailHash");