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:
Kittywhiskers Van Gogh 2021-08-22 17:32:43 +02:00
parent bda01b19e6
commit ba60d5459e
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -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