aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.h
parent857c61df0b71c8a0482b1bf8fc55849f8ad831b8 (diff)
downloadbitcoin-d979e6e36ac6be0d40b2a6bb70c668f9e6989ff9.tar.xz
Use singleton block tree database instance
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 687171ef7c..2cab48c912 100644
--- a/src/main.h
+++ b/src/main.h
@@ -86,7 +86,7 @@ static const uint64 nMinDiskSpace = 52428800;
class CReserveKey;
class CCoinsDB;
-class CChainDB;
+class CBlockTreeDB;
class CDiskBlockPos;
class CCoins;
class CTxUndo;
@@ -1865,6 +1865,10 @@ public:
bool HaveCoins(uint256 txid);
};
+/** Global variable that points to the active CCoinsView (protected by cs_main) */
extern CCoinsViewCache *pcoinsTip;
+/** Global variable that points to the active block tree (protected by cs_main) */
+extern CBlockTreeDB *pblocktree;
+
#endif