mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 17:35:51 +00:00
Implement enhanced Ticket support:
Tickets are a mechanism to allow for the "out-of-order" execution of transactions on the XRP Ledger. This commit, if merged, reworks the existing support for tickets and introduces support for 'ticket batching', completing the feature set needed for tickets. The code is gated under the newly-introduced `TicketBatch` amendment and the `Tickets` amendment, which is not presently active on the network, is being removed. The specification for this change can be found at: https://github.com/xrp-community/standards-drafts/issues/16
This commit is contained in:
committed by
Nik Bougalis
parent
01bd5a2646
commit
7724cca384
@@ -1365,13 +1365,12 @@ NetworkOPsImp::apply(std::unique_lock<std::mutex>& batchLock)
|
||||
<< "Transaction is now included in open ledger";
|
||||
e.transaction->setStatus(INCLUDED);
|
||||
|
||||
auto txCur = e.transaction->getSTransaction();
|
||||
for (auto const& tx : m_ledgerMaster.pruneHeldTransactions(
|
||||
txCur->getAccountID(sfAccount),
|
||||
txCur->getSequence() + 1))
|
||||
auto const& txCur = e.transaction->getSTransaction();
|
||||
auto const txNext = m_ledgerMaster.popAcctTransaction(txCur);
|
||||
if (txNext)
|
||||
{
|
||||
std::string reason;
|
||||
auto const trans = sterilize(*tx);
|
||||
auto const trans = sterilize(*txNext);
|
||||
auto t = std::make_shared<Transaction>(trans, reason, app_);
|
||||
submit_held.emplace_back(t, false, false, FailHard::no);
|
||||
t->setApplying();
|
||||
|
||||
Reference in New Issue
Block a user