Changeset View
Changeset View
Standalone View
Standalone View
src/addrdb.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
/** Access to the (IP) address database (peers.dat) */ | /** Access to the (IP) address database (peers.dat) */ | ||||
class CAddrDB { | class CAddrDB { | ||||
private: | private: | ||||
fs::path pathAddr; | fs::path pathAddr; | ||||
const CChainParams &chainParams; | const CChainParams &chainParams; | ||||
public: | public: | ||||
CAddrDB(const CChainParams &chainParams); | explicit CAddrDB(const CChainParams &chainParams); | ||||
bool Write(const CAddrMan &addr); | bool Write(const CAddrMan &addr); | ||||
bool Read(CAddrMan &addr); | bool Read(CAddrMan &addr); | ||||
bool Read(CAddrMan &addr, CDataStream &ssPeers); | bool Read(CAddrMan &addr, CDataStream &ssPeers); | ||||
}; | }; | ||||
/** Access to the banlist database (banlist.dat) */ | /** Access to the banlist database (banlist.dat) */ | ||||
class CBanDB { | class CBanDB { | ||||
private: | private: | ||||
Show All 10 Lines |