xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
app
rdb
PeerFinder.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/config/BasicConfig.h>
5
#include <xrpl/peerfinder/detail/Store.h>
6
#include <xrpl/rdb/DatabaseCon.h>
7
8
#include <
functional
>
9
#include <
string
>
10
#include <
vector
>
11
12
namespace
xrpl
{
13
20
void
21
initPeerFinderDB
(soci::session& session,
BasicConfig
const
& config, beast::Journal j);
22
29
void
30
updatePeerFinderDB
(soci::session& session,
int
currentSchemaVersion, beast::Journal j);
31
38
void
39
readPeerFinderDB
(soci::session& session, std::function<
void
(std::string
const
&,
int
)>
const
& func);
40
46
void
47
savePeerFinderDB
(soci::session& session, std::vector<peer_finder::Store::Entry>
const
& v);
48
49
}
// namespace xrpl
xrpl::BasicConfig
Holds unparsed configuration information.
Definition
BasicConfig.h:222
functional
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::savePeerFinderDB
void savePeerFinderDB(soci::session &session, std::vector< peer_finder::Store::Entry > const &v)
savePeerFinderDB Saves a new entry to the peer finder database.
Definition
xrpld/app/rdb/detail/PeerFinder.cpp:229
xrpl::readPeerFinderDB
void readPeerFinderDB(soci::session &session, std::function< void(std::string const &, int)> const &func)
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for e...
Definition
xrpld/app/rdb/detail/PeerFinder.cpp:209
xrpl::updatePeerFinderDB
void updatePeerFinderDB(soci::session &session, int currentSchemaVersion, beast::Journal j)
updatePeerFinderDB Updates the peer finder database to a new version.
Definition
xrpld/app/rdb/detail/PeerFinder.cpp:60
xrpl::initPeerFinderDB
void initPeerFinderDB(soci::session &session, BasicConfig const &config, beast::Journal j)
initPeerFinderDB Opens a session with the peer finder database.
Definition
xrpld/app/rdb/detail/PeerFinder.cpp:28
string
vector
Generated by
1.17.0