MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator()

Method operator()

src/txmempool.cpp:947–955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945{
946public:
947 bool operator()(const CTxMemPool::indexed_transaction_set::const_iterator& a, const CTxMemPool::indexed_transaction_set::const_iterator& b)
948 {
949 uint64_t counta = a->GetCountWithAncestors();
950 uint64_t countb = b->GetCountWithAncestors();
951 if (counta == countb) {
952 return CompareTxMemPoolEntryByScore()(*a, *b);
953 }
954 return counta < countb;
955 }
956};
957} // namespace
958

Callers

nothing calls this directly

Calls 2

GetCountWithAncestorsMethod · 0.80

Tested by

no test coverage detected