|
rippled
|


Public Types | |
| using | AccountTx = std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > > |
| using | AccountTxs = std::vector< AccountTx > |
| using | txnMetaLedgerType = std::tuple< Blob, Blob, std::uint32_t > |
| using | MetaTxsList = std::vector< txnMetaLedgerType > |
| using | LedgerSequence = uint32_t |
| using | LedgerHash = uint256 |
| using | LedgerShortcut = RPC::LedgerShortcut |
| using | LedgerSpecifier = std::variant< LedgerRange, LedgerShortcut, LedgerSequence, LedgerHash > |
Public Member Functions | |
| virtual void | stop ()=0 |
| virtual void | sweep ()=0 |
| sweep Sweeps the database. More... | |
| virtual std::string | getCompleteLedgers ()=0 |
| getCompleteLedgers Returns a string which contains a list of completed ledgers. More... | |
| virtual std::chrono::seconds | getValidatedLedgerAge ()=0 |
| getValidatedLedgerAge Returns the age of the last validated ledger. More... | |
| virtual bool | writeLedgerAndTransactions (LedgerInfo const &info, std::vector< AccountTransactionsData > const &accountTxData)=0 |
| writeLedgerAndTransactions Writes new ledger and transaction data into the database. More... | |
| virtual std::vector< uint256 > | getTxHashes (LedgerIndex seq)=0 |
| getTxHashes Returns a vector of the hashes of transactions belonging to the ledger with the provided sequence. More... | |
| virtual std::pair< AccountTxResult, RPC::Status > | getAccountTx (AccountTxArgs const &args)=0 |
| getAccountTx Get the last account transactions specified by the AccountTxArgs struct. More... | |
| virtual Transaction::Locator | locateTransaction (uint256 const &id)=0 |
| locateTransaction Returns information used to locate a transaction. More... | |
| virtual bool | isCaughtUp (std::string &reason)=0 |
| isCaughtUp returns whether the database is caught up with the network More... | |
| virtual std::optional< LedgerIndex > | getMinLedgerSeq ()=0 |
| getMinLedgerSeq Returns the minimum ledger sequence in the Ledgers table. More... | |
| virtual std::optional< LedgerIndex > | getMaxLedgerSeq ()=0 |
| getMaxLedgerSeq Returns the maximum ledger sequence in the Ledgers table. More... | |
| virtual std::optional< LedgerInfo > | getLedgerInfoByIndex (LedgerIndex ledgerSeq)=0 |
| getLedgerInfoByIndex Returns a ledger by its sequence. More... | |
| virtual std::optional< LedgerInfo > | getNewestLedgerInfo ()=0 |
| getNewestLedgerInfo Returns the info of the newest saved ledger. More... | |
| virtual std::optional< LedgerInfo > | getLedgerInfoByHash (uint256 const &ledgerHash)=0 |
| getLedgerInfoByHash Returns the info of the ledger with given hash. More... | |
| virtual uint256 | getHashByIndex (LedgerIndex ledgerIndex)=0 |
| getHashByIndex Returns the hash of the ledger with the given sequence. More... | |
| virtual std::optional< LedgerHashPair > | getHashesByIndex (LedgerIndex ledgerIndex)=0 |
| getHashesByIndex Returns the hashes of the ledger and its parent as specified by the ledgerIndex. More... | |
| virtual std::map< LedgerIndex, LedgerHashPair > | getHashesByIndex (LedgerIndex minSeq, LedgerIndex maxSeq)=0 |
| getHashesByIndex Returns hashes of each ledger and its parent for all ledgers within the provided range. More... | |
| virtual std::vector< std::shared_ptr< Transaction > > | getTxHistory (LedgerIndex startIndex)=0 |
| getTxHistory Returns the 20 most recent transactions starting from the given number. More... | |
| virtual bool | ledgerDbHasSpace (Config const &config)=0 |
| ledgerDbHasSpace Checks if the ledger database has available space. More... | |
| virtual bool | transactionDbHasSpace (Config const &config)=0 |
| transactionDbHasSpace Checks if the transaction database has available space. More... | |
Static Public Member Functions | |
| static std::unique_ptr< RelationalDatabase > | init (Application &app, Config const &config, JobQueue &jobQueue) |
| init Creates and returns an appropriate RelationalDatabase instance based on configuration. More... | |
Definition at line 27 of file PostgresDatabase.h.
|
inherited |
Definition at line 85 of file RelationalDatabase.h.
|
inherited |
Definition at line 86 of file RelationalDatabase.h.
|
inherited |
Definition at line 87 of file RelationalDatabase.h.
|
inherited |
Definition at line 88 of file RelationalDatabase.h.
|
inherited |
Definition at line 90 of file RelationalDatabase.h.
|
inherited |
Definition at line 91 of file RelationalDatabase.h.
|
inherited |
Definition at line 92 of file RelationalDatabase.h.
|
inherited |
Definition at line 94 of file RelationalDatabase.h.
|
pure virtual |
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
sweep Sweeps the database.
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
getCompleteLedgers Returns a string which contains a list of completed ledgers.
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
getValidatedLedgerAge Returns the age of the last validated ledger.
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
writeLedgerAndTransactions Writes new ledger and transaction data into the database.
| info | Ledger info to write. |
| accountTxData | Transaction data to write |
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
getTxHashes Returns a vector of the hashes of transactions belonging to the ledger with the provided sequence.
| seq | Ledger sequence |
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
getAccountTx Get the last account transactions specified by the AccountTxArgs struct.
| args | Arguments which specify the account and which transactions to return. |
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
locateTransaction Returns information used to locate a transaction.
| id | Hash of the transaction. |
Implemented in ripple::PostgresDatabaseImp.
|
pure virtual |
isCaughtUp returns whether the database is caught up with the network
| [out] | reason | if the database is not caught up, reason contains a helpful message describing why |
Implemented in ripple::PostgresDatabaseImp.
|
staticinherited |
init Creates and returns an appropriate RelationalDatabase instance based on configuration.
| app | Application object. |
| config | Config object. |
| jobQueue | JobQueue object. |
Definition at line 34 of file RelationalDatabase.cpp.
|
pure virtualinherited |
getMinLedgerSeq Returns the minimum ledger sequence in the Ledgers table.
Implemented in ripple::PostgresDatabaseImp, and ripple::SQLiteDatabaseImp.
|
pure virtualinherited |
getMaxLedgerSeq Returns the maximum ledger sequence in the Ledgers table.
Implemented in ripple::PostgresDatabaseImp, and ripple::SQLiteDatabaseImp.
|
pure virtualinherited |
getLedgerInfoByIndex Returns a ledger by its sequence.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getNewestLedgerInfo Returns the info of the newest saved ledger.
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getLedgerInfoByHash Returns the info of the ledger with given hash.
| ledgerHash | Hash of the ledger. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getHashByIndex Returns the hash of the ledger with the given sequence.
| ledgerIndex | Ledger sequence. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getHashesByIndex Returns the hashes of the ledger and its parent as specified by the ledgerIndex.
| ledgerIndex | Ledger sequence. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getHashesByIndex Returns hashes of each ledger and its parent for all ledgers within the provided range.
| minSeq | Minimum ledger sequence. |
| maxSeq | Maximum ledger sequence. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
getTxHistory Returns the 20 most recent transactions starting from the given number.
| startIndex | First number of returned entry. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
ledgerDbHasSpace Checks if the ledger database has available space.
| config | Config object. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
|
pure virtualinherited |
transactionDbHasSpace Checks if the transaction database has available space.
| config | Config object. |
Implemented in ripple::SQLiteDatabaseImp, and ripple::PostgresDatabaseImp.
1.8.17