Bitcoin
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
 

Private Attributes

const uint64_t k0
 
const uint64_t k1
 

Constructor & Destructor Documentation

◆ SaltedOutpointHasher()

SaltedOutpointHasher::SaltedOutpointHasher ( )

Member Function Documentation

◆ operator()()

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).

Member Data Documentation

◆ k0

const uint64_t SaltedOutpointHasher::k0
private

Salt

◆ k1

const uint64_t SaltedOutpointHasher::k1
private

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