aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-16 22:11:19 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-16 22:11:19 -0400
commit928d3a011cc66c7f907c4d053f674ea77dc611cc (patch)
treef2e3f8b379328089349fb105d08b64b7cc8e1b18 /src/db.h
parent768e5d52fb295b000940f6a806c3d4bfc3e4f54d (diff)
CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/db.h b/src/db.h
index 3ce8f1758f..4f8e5d04fe 100644
--- a/src/db.h
+++ b/src/db.h
@@ -296,20 +296,15 @@ public:
-/** Access to the (IP) address database (addr.dat) */
-class CAddrDB : public CDB
+/** Access to the (IP) address database (peers.dat) */
+class CAddrDB
{
-public:
- CAddrDB(const char* pszMode="r+") : CDB("addr.dat", pszMode) { }
private:
- CAddrDB(const CAddrDB&);
- void operator=(const CAddrDB&);
+ boost::filesystem::path pathAddr;
public:
- bool WriteAddrman(const CAddrMan& addr);
- bool LoadAddresses();
+ CAddrDB();
+ bool Write(const CAddrMan& addr);
+ bool Read(CAddrMan& addr);
};
-bool LoadAddresses();
-
-
#endif // BITCOIN_DB_H