TNL::ClientPuzzleManager::NonceTable Class Reference
Detailed Description
NonceTable manages the list of client nonces for which clients have constructed valid puzzle solutions for the current server nonce.
There are 2 nonce tables in the ClientPuzzleManager - one for the current nonce and one for the previous nonce.
Member Enumeration Documentation
|
- Enumeration values:
-
MinHashTableSize |
|
MaxHashTableSize |
|
|
Constructor & Destructor Documentation
TNL::ClientPuzzleManager::NonceTable::NonceTable |
( |
|
) |
[inline] |
|
Member Function Documentation
void TNL::ClientPuzzleManager::NonceTable::reset |
( |
|
) |
|
|
|
Resets and clears the nonce table.
|
bool TNL::ClientPuzzleManager::NonceTable::checkAdd |
( |
Nonce & |
theNonce |
) |
|
|
|
checks if the given nonce is already in the table and adds it if it is not.
Returns true if the nonce was not in the table when the function was called. |
Field Documentation