aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2013-01-06 04:30:00 -0800
committerEric Lombrozo <elombrozo@gmail.com>2013-06-05 20:36:10 -0700
commit336fe971e68f0336d42e1fa930b6a9c717f612e0 (patch)
treeac1e93fe3b0abf840db3c33ec52a7de665d66a0d /src/db.h
parentc94bd68547df9ba7645305f9813e02d548e8a981 (diff)
Get rid of db dependencies on main
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/db.h b/src/db.h
index ea440c4960..92241f6cf2 100644
--- a/src/db.h
+++ b/src/db.h
@@ -5,22 +5,22 @@
#ifndef BITCOIN_DB_H
#define BITCOIN_DB_H
-#include "main.h"
+#include "sync.h"
+#include "serialize.h"
#include <map>
#include <string>
#include <vector>
+#include <boost/filesystem.hpp>
#include <db_cxx.h>
-class CAddress;
class CAddrMan;
class CBlockLocator;
class CDiskBlockIndex;
class CMasterKey;
class COutPoint;
class CWallet;
-class CWalletTx;
extern unsigned int nWalletDBUpdated;
@@ -318,10 +318,14 @@ class CAddrDB
{
private:
boost::filesystem::path pathAddr;
+ static unsigned char pchMessageStart[4];
+
public:
CAddrDB();
bool Write(const CAddrMan& addr);
bool Read(CAddrMan& addr);
+
+ static void SetMessageStart(unsigned char _pchMessageStart[]) { memcpy(CAddrDB::pchMessageStart, _pchMessageStart, sizeof(CAddrDB::pchMessageStart)); }
};
#endif // BITCOIN_DB_H