aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-09-03 15:26:57 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-20 23:08:57 +0200
commitd979e6e36ac6be0d40b2a6bb70c668f9e6989ff9 (patch)
tree6ed14b062fb97de3c1b9646161297649825b62e4 /src/db.h
parent857c61df0b71c8a0482b1bf8fc55849f8ad831b8 (diff)
Use singleton block tree database instance
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/db.h b/src/db.h
index bdab635468..d0696f3d8c 100644
--- a/src/db.h
+++ b/src/db.h
@@ -348,14 +348,14 @@ public:
};
-/** Access to the block database (chain.dat) */
-class CChainDB : public CDB
+/** Access to the block database (blktree.dat) */
+class CBlockTreeDB : public CDB
{
public:
- CChainDB(const char* pszMode="r+") : CDB("chain.dat", pszMode) { }
+ CBlockTreeDB(const char* pszMode="r+") : CDB("blktree.dat", pszMode) { }
private:
- CChainDB(const CChainDB&);
- void operator=(const CChainDB&);
+ CBlockTreeDB(const CBlockTreeDB&);
+ void operator=(const CBlockTreeDB&);
public:
bool WriteBlockIndex(const CDiskBlockIndex& blockindex);
bool ReadBestInvalidWork(CBigNum& bnBestInvalidWork);
@@ -368,7 +368,7 @@ public:
};
-bool LoadBlockIndex(CChainDB &chaindb);
+bool LoadBlockIndexDB();
/** Access to the (IP) address database (peers.dat) */