Get rid of the static chainMostWork (optimization)

This commit is contained in:
Pieter Wuille
2014-05-06 00:54:10 +02:00
parent 6ff35a0565
commit 77339e5aec
2 changed files with 30 additions and 32 deletions

View File

@@ -1079,14 +1079,14 @@ public:
/** Find the last common block between this chain and a locator. */
CBlockIndex *FindFork(const CBlockLocator &locator) const;
/** Find the last common block between this chain and a block index entry. */
CBlockIndex *FindFork(CBlockIndex *pindex) const;
};
/** The currently-connected chain of blocks. */
extern CChain chainActive;
/** The currently best known chain of headers (some of which may be invalid). */
extern CChain chainMostWork;
/** Global variable that points to the active CCoinsView (protected by cs_main) */
extern CCoinsViewCache *pcoinsTip;