diff --git a/src/node/mini_miner.h b/src/node/mini_miner.h index de62c0af758..aec2aaf6b6b 100644 --- a/src/node/mini_miner.h +++ b/src/node/mini_miner.h @@ -63,7 +63,7 @@ struct IteratorComparator template bool operator()(const I& a, const I& b) const { - return &(*a) < &(*b); + return a->first < b->first; } }; diff --git a/src/txorphanage.h b/src/txorphanage.h index 3054396b2d9..3083c8467f3 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -92,7 +92,7 @@ protected: template bool operator()(const I& a, const I& b) const { - return &(*a) < &(*b); + return a->first < b->first; } };