aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-05-06 00:54:10 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-06-09 02:21:15 +0200
commit77339e5aec4da99f727b80829f9697357b4cec45 (patch)
tree13009d65f4d6f14aee63667ae23aaaf3e267b9f5 /src/main.h
parent6ff35a0565a6903464d1dfaaf02360d5c5e70c0f (diff)
downloadbitcoin-77339e5aec4da99f727b80829f9697357b4cec45.tar.xz
Get rid of the static chainMostWork (optimization)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h
index 23c8660376..98155989a3 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;