rippled
Loading...
Searching...
No Matches
State.h
1#ifndef XRPL_APP_RDB_STATE_H_INCLUDED
2#define XRPL_APP_RDB_STATE_H_INCLUDED
3
4#include <xrpld/app/ledger/Ledger.h>
5#include <xrpld/app/misc/Manifest.h>
6#include <xrpld/core/Config.h>
7#include <xrpld/core/DatabaseCon.h>
8#include <xrpld/peerfinder/detail/Store.h>
9
10#include <boost/filesystem.hpp>
11
12namespace ripple {
13
20
27void
29 soci::session& session,
30 BasicConfig const& config,
31 std::string const& dbName);
32
39getCanDelete(soci::session& session);
40
48setCanDelete(soci::session& session, LedgerIndex canDelete);
49
57getSavedState(soci::session& session);
58
66void
67setSavedState(soci::session& session, SavedState const& state);
68
74void
75setLastRotated(soci::session& session, LedgerIndex seq);
76
77} // namespace ripple
78
79#endif
Holds unparsed configuration information.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
LedgerIndex getCanDelete(soci::session &session)
getCanDelete Returns the ledger sequence which can be deleted.
Definition State.cpp:62
SavedState getSavedState(soci::session &session)
getSavedState Returns the saved state.
Definition State.cpp:80
void setSavedState(soci::session &session, SavedState const &state)
setSavedState Saves the given state.
Definition State.cpp:92
void initStateDB(soci::session &session, BasicConfig const &config, std::string const &dbName)
initStateDB Opens a session with the State database.
Definition State.cpp:6
LedgerIndex setCanDelete(soci::session &session, LedgerIndex canDelete)
setCanDelete Updates the ledger sequence which can be deleted.
Definition State.cpp:72
void setLastRotated(soci::session &session, LedgerIndex seq)
setLastRotated Updates the last rotated ledger sequence.
Definition State.cpp:104
LedgerIndex lastRotated
Definition State.h:18
std::string writableDb
Definition State.h:16
std::string archiveDb
Definition State.h:17