Changeset View
Changeset View
Standalone View
Standalone View
src/addrdb.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | public: | ||||
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: | ||||
fs::path pathBanlist; | const fs::path m_ban_list_path; | ||||
const CChainParams &chainParams; | const CChainParams &chainParams; | ||||
public: | public: | ||||
CBanDB(const CChainParams &chainParams); | CBanDB(fs::path ban_list_path, const CChainParams &_chainParams); | ||||
bool Write(const banmap_t &banSet); | bool Write(const banmap_t &banSet); | ||||
bool Read(banmap_t &banSet); | bool Read(banmap_t &banSet); | ||||
}; | }; | ||||
#endif // BITCOIN_ADDRDB_H | #endif // BITCOIN_ADDRDB_H |