6 #ifndef BITCOIN_ADDRDB_H 7 #define BITCOIN_ADDRDB_H 36 nCreateTime = nCreateTimeIn;
41 uint8_t ban_reason = 2;
42 READWRITE(obj.nVersion, obj.nCreateTime, obj.nBanUntil, ban_reason);
71 explicit CBanDB(fs::path ban_list_path);
82 void DumpAnchors(
const fs::path& anchors_db_path,
const std::vector<CAddress>& anchors);
90 std::vector<CAddress>
ReadAnchors(
const fs::path& anchors_db_path);
92 #endif // BITCOIN_ADDRDB_H
Access to the (IP) address database (peers.dat)
CBanEntry(int64_t nCreateTimeIn)
Double ended buffer combining vector and stream-like interfaces.
const fs::path m_ban_list_path
Stochastical (IP) address manager.
Access to the banlist database (banlist.dat)
A CService with information about it as peer.
std::vector< CAddress > ReadAnchors(const fs::path &anchors_db_path)
Read the anchor IP address database (anchors.dat)
void DumpAnchors(const fs::path &anchors_db_path, const std::vector< CAddress > &anchors)
Dump the anchor IP address database (anchors.dat)
SERIALIZE_METHODS(CBanEntry, obj)
std::map< CSubNet, CBanEntry > banmap_t
static const int CURRENT_VERSION