20 #include <ripple/app/ledger/LedgerMaster.h>
21 #include <ripple/app/ledger/LedgerToJson.h>
22 #include <ripple/app/main/Application.h>
23 #include <ripple/app/misc/Transaction.h>
24 #include <ripple/app/misc/impl/AccountTxPaging.h>
25 #include <ripple/protocol/Serializer.h>
26 #include <ripple/protocol/UintTypes.h>
27 #include <boost/format.hpp>
42 auto txn = std::make_shared<STTx const>(it);
45 auto tr = std::make_shared<Transaction>(txn, reason, app);
48 tr->setLedger(ledger_index);
51 std::make_shared<TxMeta>(tr->getID(), tr->getLedger(), rawMeta);
static TransStatus sqlTransactionStatus(boost::optional< std::string > const &status)
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
void convertBlobsToTxResult(RelationalDatabase::AccountTxs &to, std::uint32_t ledger_index, std::string const &status, Blob const &rawTxn, Blob const &rawMeta, Application &app)
virtual LedgerMaster & getLedgerMaster()=0
void saveLedgerAsync(Application &app, std::uint32_t seq)
std::shared_ptr< Ledger const > getLedgerBySeq(std::uint32_t index)
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool pendSaveValidated(Application &app, std::shared_ptr< Ledger const > const &ledger, bool isSynchronous, bool isCurrent)
Save, or arrange to save, a fully-validated ledger Returns false on error.