HomePhabricator

doc: BaseIndex sync behavior with empty datadir

Description

doc: BaseIndex sync behavior with empty datadir

Summary:
Make a note about a potentially confusing behavior with BaseIndex::m_synced;
if the user starts bitcoind with an empty datadir and an index enabled,
BaseIndex will consider itself synced (as a degenerate case). This affects
how indices are built during IBD (relying solely on BlockConnected signals vs.
using ThreadSync()).

This is a backport of core#22485

Depends on D17702

Test Plan: proof read

Reviewers: #bitcoin_abc, roqqit

Reviewed By: #bitcoin_abc, roqqit

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

Details

Provenance
James O'Beirne <james.obeirne@pm.me>Authored on Jul 18 2021, 15:58
PiRKCommitted on Wed, Feb 26, 16:54
PiRKPushed on Wed, Feb 26, 16:54
Reviewer
Restricted Project
Differential Revision
D17703: doc: BaseIndex sync behavior with empty datadir
Parents
rABCef3b321b2815: index: Don't commit a best block before indexing it during sync
Branches
Unknown
Tags
Unknown