From a3a609079c76dd2bbc72127488bf466cc61d8940 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 27 Mar 2019 10:55:57 -0400 Subject: refactoring: introduce unused ChainActive() in preparation for the following scripted-diff commit. --- src/validation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/validation.h') 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 pcoinsdbview; -- cgit v1.2.3