bool TabGene::operator <(const TabGene & rhs) const { Region tx(rhs.utr5.getL(), rhs.utr3.getR()); Region txm(utr5.getL(), utr3.getR()); return txm < tx; }
void closeLedger(vector<Simulation::TxInfo> txs) { auto baseFee = mApp->getConfig().DESIRED_BASE_FEE; LoadGenerator::TxMetrics txm(mApp->getMetrics()); TxSetFramePtr txSet = make_shared<TxSetFrame>( mApp->getLedgerManager().getLastClosedLedgerHeader().hash); for (auto& tx : txs) { std::vector<TransactionFramePtr> txfs; tx.toTransactionFrames(*mApp, txfs, txm); for (auto f : txfs) txSet->add(f); tx.recordExecution(baseFee); } StellarValue sv(txSet->getContentsHash(), VirtualClock::to_time_t(mApp->getClock().now()), emptyUpgradeSteps, 0); LedgerCloseData ledgerData(mApp->getLedgerManager().getLedgerNum(), txSet, sv); mApp->getLedgerManager().closeLedger(ledgerData); }