@@ -898,7 +898,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
898898 // on the command line or in this chain's section of the config file.
899899 ChainType chain = args.GetChainType ();
900900 if (chain == ChainType::SIGNET) {
901- LogPrintf (" Signet derived magic (message start): %s\n " , HexStr (chainparams.MessageStart ()));
901+ LogInfo (" Signet derived magic (message start): %s" , HexStr (chainparams.MessageStart ()));
902902 }
903903 bilingual_str errors;
904904 for (const auto & arg : args.GetUnsuitableSectionOnlyArgs ()) {
@@ -1234,7 +1234,9 @@ static ChainstateLoadResult InitAndLoadChainstate(
12341234 if (!mempool_error.empty ()) {
12351235 return {ChainstateLoadStatus::FAILURE_FATAL, mempool_error};
12361236 }
1237- LogPrintf (" * Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)\n " , cache_sizes.coins * (1.0 / 1024 / 1024 ), mempool_opts.max_size_bytes * (1.0 / 1024 / 1024 ));
1237+ LogInfo (" * Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)" ,
1238+ cache_sizes.coins * (1.0 / 1024 / 1024 ),
1239+ mempool_opts.max_size_bytes * (1.0 / 1024 / 1024 ));
12381240 ChainstateManager::Options chainman_opts{
12391241 .chainparams = chainparams,
12401242 .datadir = args.GetDataDirNet (),
@@ -1274,10 +1276,10 @@ static ChainstateLoadResult InitAndLoadChainstate(
12741276 // libbitcoinkernel.
12751277 chainman.snapshot_download_completed = [&node]() {
12761278 if (!node.chainman ->m_blockman .IsPruneMode ()) {
1277- LogPrintf (" [snapshot] re-enabling NODE_NETWORK services\n " );
1279+ LogInfo (" [snapshot] re-enabling NODE_NETWORK services" );
12781280 node.connman ->AddLocalServices (NODE_NETWORK);
12791281 }
1280- LogPrintf (" [snapshot] restarting indexes\n " );
1282+ LogInfo (" [snapshot] restarting indexes" );
12811283 // Drain the validation interface queue to ensure that the old indexes
12821284 // don't have any pending work.
12831285 Assert (node.validation_signals )->SyncWithValidationInterfaceQueue ();
@@ -1345,7 +1347,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
13451347 return false ;
13461348 }
13471349
1348- LogPrintf (" Using at most %i automatic connections (%i file descriptors available)\n " , nMaxConnections, available_fds);
1350+ LogInfo (" Using at most %i automatic connections (%i file descriptors available)" , nMaxConnections, available_fds);
13491351
13501352 // Warn about relative -datadir path.
13511353 if (args.IsArgSet (" -datadir" ) && !args.GetPathArg (" -datadir" ).is_absolute ()) {
@@ -1402,7 +1404,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14021404 } catch (const std::exception& e) {
14031405 return InitError (Untranslated (strprintf (" Unable to bind to IPC address '%s'. %s" , address, e.what ())));
14041406 }
1405- LogPrintf (" Listening for IPC requests on address %s\n " , address);
1407+ LogInfo (" Listening for IPC requests on address %s" , address);
14061408 }
14071409 }
14081410
@@ -1495,9 +1497,9 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14951497 return false ;
14961498 }
14971499 const uint256 asmap_version = (HashWriter{} << asmap).GetHash ();
1498- LogPrintf (" Using asmap version %s for IP bucketing\n " , asmap_version.ToString ());
1500+ LogInfo (" Using asmap version %s for IP bucketing" , asmap_version.ToString ());
14991501 } else {
1500- LogPrintf (" Using /16 prefix for IP bucketing\n " );
1502+ LogInfo (" Using /16 prefix for IP bucketing" );
15011503 }
15021504
15031505 // Initialize netgroup manager
@@ -1753,7 +1755,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
17531755 // As LoadBlockIndex can take several minutes, it's possible the user
17541756 // requested to kill the GUI during the last operation. If so, exit.
17551757 if (ShutdownRequested (node)) {
1756- LogPrintf (" Shutdown requested. Exiting.\n " );
1758+ LogInfo (" Shutdown requested. Exiting." );
17571759 return false ;
17581760 }
17591761
@@ -1808,10 +1810,10 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
18081810 } else {
18091811 // Prior to setting NODE_NETWORK, check if we can provide historical blocks.
18101812 if (!WITH_LOCK (chainman.GetMutex (), return chainman.BackgroundSyncInProgress ())) {
1811- LogPrintf (" Setting NODE_NETWORK on non-prune mode\n " );
1813+ LogInfo (" Setting NODE_NETWORK on non-prune mode" );
18121814 g_local_services = ServiceFlags (g_local_services | NODE_NETWORK);
18131815 } else {
1814- LogPrintf (" Running node in NODE_NETWORK_LIMITED mode until snapshot background sync completes\n " );
1816+ LogInfo (" Running node in NODE_NETWORK_LIMITED mode until snapshot background sync completes" );
18151817 }
18161818 }
18171819
@@ -1870,7 +1872,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
18701872 // Import blocks and ActivateBestChain()
18711873 ImportBlocks (chainman, vImportFiles);
18721874 if (args.GetBoolArg (" -stopafterblockimport" , DEFAULT_STOPAFTERBLOCKIMPORT)) {
1873- LogPrintf (" Stopping after block import\n " );
1875+ LogInfo (" Stopping after block import" );
18741876 if (!(Assert (node.shutdown_request ))()) {
18751877 LogError (" Failed to send shutdown signal after finishing block import\n " );
18761878 }
@@ -1918,7 +1920,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
19181920 {
19191921 LOCK (chainman.GetMutex ());
19201922 const auto & tip{*Assert (chainman.ActiveTip ())};
1921- LogPrintf (" block tree size = %u\n " , chainman.BlockIndex ().size ());
1923+ LogInfo (" block tree size = %u" , chainman.BlockIndex ().size ());
19221924 chain_active_height = tip.nHeight ;
19231925 best_block_time = tip.GetBlockTime ();
19241926 if (tip_info) {
@@ -1931,7 +1933,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
19311933 tip_info->header_time = chainman.m_best_header ->GetBlockTime ();
19321934 }
19331935 }
1934- LogPrintf (" nBestHeight = %d\n " , chain_active_height);
1936+ LogInfo (" nBestHeight = %d" , chain_active_height);
19351937 if (node.peerman ) node.peerman ->SetBestBlock (chain_active_height, std::chrono::seconds{best_block_time});
19361938
19371939 // Map ports with NAT-PMP
@@ -2061,11 +2063,11 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
20612063 connOptions.m_specified_outgoing = connect;
20622064 }
20632065 if (!connOptions.m_specified_outgoing .empty () && !connOptions.vSeedNodes .empty ()) {
2064- LogPrintf (" -seednode is ignored when -connect is used\n " );
2066+ LogInfo (" -seednode is ignored when -connect is used" );
20652067 }
20662068
20672069 if (args.IsArgSet (" -dnsseed" ) && args.GetBoolArg (" -dnsseed" , DEFAULT_DNSSEED) && args.IsArgSet (" -proxy" )) {
2068- LogPrintf (" -dnsseed is ignored when -connect is used and -proxy is specified\n " );
2070+ LogInfo (" -dnsseed is ignored when -connect is used and -proxy is specified" );
20692071 }
20702072 }
20712073
0 commit comments