Merge pull request #10897

e5d701d tx_pool: remove redundant hashCompare comparator (selsta)

ACKs: jpk68*, vtnerd*, jeffro256
This commit is contained in:
tobtoht
2026-07-16 17:31:22 +00:00
+1 -10
View File
@@ -78,18 +78,9 @@ namespace cryptonote
}
};
class hashCompare
{
public:
bool operator()(const crypto::hash& a, const crypto::hash& b) const
{
return memcmp(a.data, b.data, sizeof(crypto::hash)) < 0;
}
};
//! container for sorting transactions by fee per unit size
typedef boost::bimap<boost::bimaps::multiset_of<std::pair<double, std::time_t>, txFeeCompare>,
boost::bimaps::set_of<crypto::hash, hashCompare>> sorted_tx_container;
boost::bimaps::set_of<crypto::hash>> sorted_tx_container;
/**