diff options
author | Carl Dong <contact@carldong.me> | 2020-08-25 17:27:05 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-01-28 14:15:26 -0500 |
commit | 15d20f40e1321b24963b40c12958c7d30ad112ec (patch) | |
tree | 40ba167bd2d0656a8e78e3551ad915bb4e0d9425 /src/validation.h | |
parent | f92dc6557a153b390a1ae1d0808ff7ed5d02c66e (diff) |
validation: Move LookupBlockIndex to BlockManager
[META] This commit should be followed up by a scripted-diff commit which
fixes calls to LookupBlockIndex tree-wide.
[META] This commit should be followed up by removing the comments and
assertions meant only to show that the change is correct.
LookupBlockIndex only acts on BlockManager.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 5d060ec753..1c3852d158 100644 --- a/src/validation.h +++ b/src/validation.h @@ -433,6 +433,8 @@ public: const CChainParams& chainparams, CBlockIndex** ppindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + ~BlockManager() { Unload(); } |