Use singleton block tree database instance
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user