aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-06-10 06:17:38 -0700
committerJeff Garzik <jgarzik@bitpay.com>2013-06-10 06:17:38 -0700
commitf59530ce6eb5a889e6eb750024ddb20e7b0df9d7 (patch)
treee224b540dce7890cbf54f43215a05213bd5cb494 /src/db.h
parent8b313c93311813e8697807a701604d182ee83d44 (diff)
parent6e68524e95da2bedc21b1d95c4a206b902ab7c22 (diff)
downloadbitcoin-f59530ce6eb5a889e6eb750024ddb20e7b0df9d7.tar.xz
Merge pull request #2154 from CodeShark/dependencycleanup
Clean up code dependencies
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