diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-09-03 15:26:57 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-20 23:08:57 +0200 |
commit | d979e6e36ac6be0d40b2a6bb70c668f9e6989ff9 (patch) | |
tree | 6ed14b062fb97de3c1b9646161297649825b62e4 /src/main.h | |
parent | 857c61df0b71c8a0482b1bf8fc55849f8ad831b8 (diff) | |
download | bitcoin-d979e6e36ac6be0d40b2a6bb70c668f9e6989ff9.tar.xz |
Use singleton block tree database instance
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 6 |
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 |