aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2019-03-27 10:55:57 -0400
committerJames O'Beirne <james.obeirne@gmail.com>2019-05-03 14:38:38 -0400
commita3a609079c76dd2bbc72127488bf466cc61d8940 (patch)
tree6e1dd1993f60b0d3cdf5fedbc396f0fb57921d2d /src/validation.h
parent1b6e6fcfd2f8a8def148ea0f50af202d5cae318a (diff)
downloadbitcoin-a3a609079c76dd2bbc72127488bf466cc61d8940.tar.xz
refactoring: introduce unused ChainActive()
in preparation for the following scripted-diff commit.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index 7ab6adaf33..cec6c7d003 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -438,6 +438,9 @@ void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_mai
/** The currently-connected chain of blocks (protected by cs_main). */
extern CChain& chainActive;
+/** @returns the most-work chain. */
+CChain& ChainActive();
+
/** Global variable that points to the coins database (protected by cs_main) */
extern std::unique_ptr<CCoinsViewDB> pcoinsdbview;