From d223bc940a16712f221f634047408e8771dff26c Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 9 Aug 2017 17:08:22 +0200 Subject: Use unique_ptr for pcoinscatcher/pcoinsdbview/pcoinsTip/pblocktree * pcoinscatcher (CCoinsViewErrorCatcher) * pcoinsdbview (CCoinsViewDB) * pcoinsTip (CCoinsViewCache) * pblocktree (CBlockTreeDB) * Remove variables shadowing pcoinsdbview --- src/validation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 93669de6c4..f2ffdc8993 100644 --- a/src/validation.h +++ b/src/validation.h @@ -444,13 +444,13 @@ bool ResetBlockFailureFlags(CBlockIndex *pindex); extern CChain chainActive; /** Global variable that points to the coins database (protected by cs_main) */ -extern CCoinsViewDB *pcoinsdbview; +extern std::unique_ptr pcoinsdbview; /** Global variable that points to the active CCoinsView (protected by cs_main) */ -extern CCoinsViewCache *pcoinsTip; +extern std::unique_ptr pcoinsTip; /** Global variable that points to the active block tree (protected by cs_main) */ -extern CBlockTreeDB *pblocktree; +extern std::unique_ptr pblocktree; /** * Return the spend height, which is one more than the inputs.GetBestBlock(). -- cgit v1.2.3