diff options
| author | Pieter Wuille <[email protected]> | 2014-05-06 00:54:10 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-09 02:21:15 +0200 |
| commit | 77339e5aec4da99f727b80829f9697357b4cec45 (patch) | |
| tree | 13009d65f4d6f14aee63667ae23aaaf3e267b9f5 /src/main.h | |
| parent | Merge pull request #4307 (diff) | |
| download | discoin-77339e5aec4da99f727b80829f9697357b4cec45.tar.xz discoin-77339e5aec4da99f727b80829f9697357b4cec45.zip | |
Get rid of the static chainMostWork (optimization)
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h index 23c866037..98155989a 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; |