/* reports the existence of an entry in the hash table  */
IxEthDBStatus ixEthDBPeekHashEntry(HashTable *hashTable, int keyType, void *reference)
/* reports the existence of an entry in the hash table  */
IxEthDBStatus ixEthDBPeekHashEntry(HashTable *hashTable, int keyType, void *reference)
{
    UINT32 hashValue;
    HashNode *node;
    hashValue = hashTable->entryHashFunction(reference);
    node      = hashTable->hashBuckets[hashValue % hashTable->numBuckets];
    while (node != NULL)
    {
        TRY_LOCK(&node->lock);
        if (hashTable->matchFunctions[keyType](reference, node->data))
        {
            UNLOCK(&node->lock);
            return IX_ETH_DB_SUCCESS;
        }
        else
        {
            UNLOCK(&node->lock);
            node = node->next;
        }
    }
    return IX_ETH_DB_NO_SUCH_ADDR;
}