1#include <xrpld/app/rdb/RelationalDatabase.h>
2#include <xrpld/app/rdb/Wallet.h>
3#include <xrpld/overlay/PeerReservationTable.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/PublicKey.h>
7#include <xrpl/protocol/jss.h>
56 table_.insert(table.begin(), table.end());
68 auto hint =
table_.find(reservation);
83 auto const deleteme = hint;
87 table_.insert(hint, reservation);
102 auto const it =
table_.find({nodeId});
T back_inserter(T... args)
LockedSociSession checkoutDb()
std::optional< PeerReservation > insert_or_assign(PeerReservation const &reservation)
std::vector< PeerReservation > list() const
std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > table_
std::optional< PeerReservation > erase(PublicKey const &nodeId)
bool load(DatabaseCon &connection)
DatabaseCon * connection_
JSON (JavaScript Object Notation).
@ objectValue
object value (collection of name/value pairs).
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > getPeerReservationTable(soci::session &session, beast::Journal j)
getPeerReservationTable Returns the peer reservation table.
void insertPeerReservation(soci::session &session, PublicKey const &nodeId, std::string const &description)
insertPeerReservation Adds an entry to the peer reservation table.
void deletePeerReservation(soci::session &session, PublicKey const &nodeId)
deletePeerReservation Deletes an entry from the peer reservation table.
auto toJson() const -> Json::Value