20 #include <ripple/app/ledger/TransactionMaster.h>
21 #include <ripple/app/main/Application.h>
22 #include <ripple/app/misc/Transaction.h>
23 #include <ripple/basics/chrono.h>
24 #include <ripple/protocol/STTx.h>
33 std::chrono::minutes{30},
35 mApp.journal(
"TaggedCache"))
42 auto txn =
mCache.fetch(hash);
54 return mCache.fetch(txnID);
70 mCache.canonicalize_replace_client(txnID, txn);
75 boost::variant<Transaction::pointer, bool>
83 auto txn =
mCache.fetch(txnID);
88 boost::variant<Transaction::pointer, bool> v =
91 if (v.which() == 0 && boost::get<pointer>(v))
92 mCache.canonicalize_replace_client(txnID, boost::get<pointer>(v));
111 txn = std::make_shared<STTx const>(
std::ref(sit));
115 auto blob =
SerialIter{item->data(), item->size()}.getVL();
116 txn = std::make_shared<STTx const>(
123 iTx->setStatus(
COMMITTED, uCommitLedger);
125 txn = iTx->getSTransaction();
134 uint256 const tid = (*pTransaction)->getID();
135 if (tid != beast::zero)
137 auto txn = *pTransaction;
139 mCache.canonicalize_replace_client(tid, txn);