HomePhabricator

[chronik] Unbreak the build when the old variables are used

Description

[chronik] Unbreak the build when the old variables are used

Summary:
For builds that still use the BUILD_BITCOIN_CHRONIK build option, the new BUILD_CHRONIK value is set after the config directory is included, which causes the ENABLE_CHRONIK preprocessor to be off in the generated bitcoin-config.h. This diff defines the build value first so the header file is correct.
This doesn't prevent from building but the node bindings are not build without this change, and starting a node with -chronik=1 fails (unknown option). Note that this works just fine if the new build option is used.

Test Plan: Build with the old chronik build flag and run the functional tests.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
FabienAuthored on Jun 11 2025, 12:55
FabienPushed on Jun 11 2025, 12:58
Reviewer
Restricted Project
Differential Revision
D18236: [chronik] Unbreak the build when the old variables are used
Parents
rABCaeb249698088: [avalanche] Protect finalized txs from eviction for low fee
Branches
Unknown
Tags
Unknown