mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Get rid of the static chainMostWork (optimization)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user