There are 2 nonce tables in the ClientPuzzleManager - one for the current nonce and one for the previous nonce.
Public Member Functions | |
NonceTable () | |
NonceTable constructor. | |
void | reset () |
Resets and clears the nonce table. | |
bool | checkAdd (Nonce &theNonce) |
checks if the given nonce is already in the table and adds it if it is not. | |
Private Types | |
enum | { MinHashTableSize = 127, MaxHashTableSize = 387 } |
Private Attributes | |
Entry ** | mHashTable |
U32 | mHashTableSize |
DataChunker | mChunker |
|
|
|
NonceTable constructor.
|
|
Resets and clears the nonce table.
|
|
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. |
|
|
|
|
|
|