Changeset View
Changeset View
Standalone View
Standalone View
src/coins.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public: | ||||
* This *must* return size_t. With Boost 1.46 on 32-bit systems the | * 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 | * unordered_map will behave unpredictably if the custom hasher returns a | ||||
* uint64_t, resulting in failures when syncing the chain (#4634). | * uint64_t, resulting in failures when syncing the chain (#4634). | ||||
* Note: This information above might be outdated as the unordered map | * Note: This information above might be outdated as the unordered map | ||||
* container type has meanwhile been switched to the C++ standard library | * container type has meanwhile been switched to the C++ standard library | ||||
* implementation. | * implementation. | ||||
*/ | */ | ||||
size_t operator()(const COutPoint &outpoint) const { | size_t operator()(const COutPoint &outpoint) const { | ||||
return SipHashUint256Extra(k0, k1, outpoint.hash, outpoint.n); | return SipHashUint256Extra(k0, k1, outpoint.GetTxId(), outpoint.GetN()); | ||||
} | } | ||||
}; | }; | ||||
struct CCoinsCacheEntry { | struct CCoinsCacheEntry { | ||||
// The actual cached data. | // The actual cached data. | ||||
Coin coin; | Coin coin; | ||||
uint8_t flags; | uint8_t flags; | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |