mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#22772: hasher cleanup (follow-up to bitcoin#19935)
`KeyIDHasher` was never introduced as Dash uses different HD logic. Therefore, there is no `KeyIDHasher` to remove.
This commit is contained in:
parent
bda01b19e6
commit
ba60d5459e
@ -33,10 +33,6 @@ public:
|
|||||||
SaltedOutpointHasher(bool deterministic = false);
|
SaltedOutpointHasher(bool deterministic = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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).
|
|
||||||
*
|
|
||||||
* Having the hash noexcept allows libstdc++'s unordered_map to recalculate
|
* Having the hash noexcept allows libstdc++'s unordered_map to recalculate
|
||||||
* the hash during rehash, so it does not have to cache the value. This
|
* the hash during rehash, so it does not have to cache the value. This
|
||||||
* reduces node's memory by sizeof(size_t). The required recalculation has
|
* reduces node's memory by sizeof(size_t). The required recalculation has
|
||||||
|
Loading…
Reference in New Issue
Block a user