Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
SaltedOutpointHasher Class Reference

#include <coins.h>

Public Member Functions

 SaltedOutpointHasher ()
 
size_t operator() (const COutPoint &id) const
 This must return size_t. More...
 

Private Attributes

const uint64_t k0
 Salt. More...
 
const uint64_t k1
 

Detailed Description

Definition at line 84 of file coins.h.

Constructor & Destructor Documentation

SaltedOutpointHasher::SaltedOutpointHasher ( )

Definition at line 35 of file coins.cpp.

Member Function Documentation

size_t SaltedOutpointHasher::operator() ( const COutPoint id) const
inline

This must return size_t.

With Boost 1.46 on 32-bit systems the unordered_map will behave unpredictably if the custom hasher returns a uint64_t, resulting in failures when syncing the chain (#4634).

Definition at line 98 of file coins.h.

Here is the call graph for this function:

Member Data Documentation

const uint64_t SaltedOutpointHasher::k0
private

Salt.

Definition at line 88 of file coins.h.

const uint64_t SaltedOutpointHasher::k1
private

Definition at line 88 of file coins.h.


The documentation for this class was generated from the following files: