예제 #1
0
 bool operator()(TransactionFramePtr const& tx1,
                 TransactionFramePtr const& tx2)
 {
     if (tx1->getSourceID() == tx2->getSourceID())
         return tx1->getSeqNum() < tx2->getSeqNum();
     float fee1 = mAccountFeeMap[tx1->getSourceID()];
     float fee2 = mAccountFeeMap[tx2->getSourceID()];
     if (fee1 == fee2)
         return tx1->getSourceID() < tx2->getSourceID();
     return fee1 > fee2;
 }
예제 #2
0
static bool
SeqSorter(TransactionFramePtr const& tx1, TransactionFramePtr const& tx2)
{
    return tx1->getSeqNum() < tx2->getSeqNum();
}