HomePhabricator

refactoring: IsInitialBlockDownload -> CChainState

Description

refactoring: IsInitialBlockDownload -> CChainState

Summary:
We introduce CChainState.m_cached_finished_ibd because the static state it
replaces would've been shared across all CChainState instances.

This is a partial backport of Core PR15976 : https://github.com/bitcoin/bitcoin/pull/15976/commits/403e677c9ebbf9744733010e6b0c2d1b182ee850

Depends on D6002

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D6035

Details

Provenance
James O'Beirne <james.obeirne@gmail.com>Authored on Mar 27 2019, 16:21
deadalnixCommitted on May 11 2020, 23:37
deadalnixPushed on May 11 2020, 23:37
Reviewer
Restricted Project
Differential Revision
D6035: refactoring: IsInitialBlockDownload -> CChainState
Parents
rABC360ada969b27: [tests] Remove ctime() call which may be unreliable on some systems
Branches
Unknown
Tags
Unknown