20#ifndef RIPPLE_APP_RDB_WALLET_H_INCLUDED 
   21#define RIPPLE_APP_RDB_WALLET_H_INCLUDED 
   23#include <xrpld/app/misc/Manifest.h> 
   24#include <xrpld/core/Config.h> 
   25#include <xrpld/core/DatabaseCon.h> 
   26#include <xrpld/overlay/PeerReservationTable.h> 
   48    DatabaseCon::Setup 
const& setup,
 
   63    soci::session& session,
 
   65    ManifestCache& mCache,
 
   78    soci::session& session,
 
   81    hash_map<PublicKey, Manifest> 
const& map,
 
  127    soci::session& session,
 
  128    PublicKey 
const& nodeId,
 
  160    soci::session& session,
 
  162        boost::optional<std::string> amendment_hash,
 
  163        boost::optional<std::string> amendment_name,
 
  164        boost::optional<AmendmentVote> vote)> 
const& callback);
 
  175    soci::session& session,
 
A generic endpoint for log messages.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
void saveManifests(soci::session &session, std::string const &dbTable, std::function< bool(PublicKey const &)> const &isTrusted, hash_map< PublicKey, Manifest > const &map, beast::Journal j)
saveManifests Saves all given manifests to the database.
 
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 addValidatorManifest(soci::session &session, std::string const &serialized)
addValidatorManifest Saves the manifest of a validator to the database.
 
std::pair< PublicKey, SecretKey > getNodeIdentity(Application &app, boost::program_options::variables_map const &cmdline)
The cryptographic credentials identifying this server instance.
 
bool createFeatureVotes(soci::session &session)
createFeatureVotes Creates the FeatureVote table if it does not exist.
 
std::unique_ptr< DatabaseCon > makeTestWalletDB(DatabaseCon::Setup const &setup, std::string const &dbname, beast::Journal j)
makeTestWalletDB Opens a test wallet database with an arbitrary name.
 
void readAmendments(soci::session &session, std::function< void(boost::optional< std::string > amendment_hash, boost::optional< std::string > amendment_name, boost::optional< AmendmentVote > vote)> const &callback)
readAmendments Reads all amendments from the FeatureVotes table.
 
void clearNodeIdentity(soci::session &session)
Delete any saved public/private key associated with this node.
 
std::unique_ptr< DatabaseCon > makeWalletDB(DatabaseCon::Setup const &setup, beast::Journal j)
makeWalletDB Opens the wallet database and returns it.
 
void getManifests(soci::session &session, std::string const &dbTable, ManifestCache &mCache, beast::Journal j)
getManifests Loads a manifest from the wallet database and stores it in the cache.
 
void deletePeerReservation(soci::session &session, PublicKey const &nodeId)
deletePeerReservation Deletes an entry from the peer reservation table.
 
void voteAmendment(soci::session &session, uint256 const &amendment, std::string const &name, AmendmentVote vote)
voteAmendment Set the veto value for a particular amendment.