Dash Core  0.12.2.1
P2P Digital Currency
CCoinsKeyHasher Class Reference

#include <coins.h>

Public Member Functions

 CCoinsKeyHasher ()
 
size_t operator() (const uint256 &key) const
 

Private Attributes

uint256 salt
 

Detailed Description

Definition at line 267 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsKeyHasher()

CCoinsKeyHasher::CCoinsKeyHasher ( )

Definition at line 59 of file coins.cpp.

Member Function Documentation

◆ operator()()

size_t CCoinsKeyHasher::operator() ( const uint256 key) 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 280 of file coins.h.

Member Data Documentation

◆ salt

uint256 CCoinsKeyHasher::salt
private

Definition at line 270 of file coins.h.

Referenced by operator()().


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