@@ -133,10 +133,6 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
133
133
134
134
chainman.InitAdditionalIndexes ();
135
135
136
- LogPrintf (" %s: address index %s\n " , __func__, fAddressIndex ? " enabled" : " disabled" );
137
- LogPrintf (" %s: timestamp index %s\n " , __func__, fTimestampIndex ? " enabled" : " disabled" );
138
- LogPrintf (" %s: spent index %s\n " , __func__, fSpentIndex ? " enabled" : " disabled" );
139
-
140
136
// Check for changed -prune state. What we are concerned about is a user who has pruned blocks
141
137
// in the past, but is now trying to run unpruned.
142
138
if (chainman.m_blockman .m_have_pruned && !fPruneMode ) {
@@ -277,7 +273,8 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
277
273
const Consensus::Params& consensus_params,
278
274
unsigned int check_blocks,
279
275
unsigned int check_level,
280
- std::function<int64_t ()> get_unix_time_seconds)
276
+ std::function<int64_t ()> get_unix_time_seconds,
277
+ std::function<void(bool )> notify_bls_state)
281
278
{
282
279
auto is_coinsview_empty = [&](CChainState* chainstate) EXCLUSIVE_LOCKS_REQUIRED (::cs_main) {
283
280
return fReset || fReindexChainState || chainstate->CoinsTip ().GetBestBlock ().IsNull ();
@@ -294,7 +291,7 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
294
291
const bool v19active{DeploymentActiveAfter (tip, consensus_params, Consensus::DEPLOYMENT_V19)};
295
292
if (v19active) {
296
293
bls::bls_legacy_scheme.store (false );
297
- LogPrintf ( " %s: bls_legacy_scheme=%d \n " , __func__, bls::bls_legacy_scheme.load ());
294
+ if (notify_bls_state) notify_bls_state ( bls::bls_legacy_scheme.load ());
298
295
}
299
296
300
297
if (!CVerifyDB ().VerifyDB (
@@ -309,7 +306,7 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
309
306
// Make sure we use the right scheme.
310
307
if (v19active && bls::bls_legacy_scheme.load ()) {
311
308
bls::bls_legacy_scheme.store (false );
312
- LogPrintf ( " %s: bls_legacy_scheme=%d \n " , __func__, bls::bls_legacy_scheme.load ());
309
+ if (notify_bls_state) notify_bls_state ( bls::bls_legacy_scheme.load ());
313
310
}
314
311
315
312
if (check_level >= 3 ) {
0 commit comments