File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ namespace { // Variables internal to initialization process only
10411041int nMaxConnections;
10421042int nUserMaxConnections;
10431043int nFD;
1044- ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK | NODE_NETWORK_LIMITED | NODE_HEADERS_COMPRESSED);
1044+ ServiceFlags nLocalServices = ServiceFlags(NODE_NETWORK_LIMITED | NODE_HEADERS_COMPRESSED);
10451045int64_t peer_connect_timeout;
10461046std::set<BlockFilterType> g_enabled_filter_types;
10471047
@@ -2221,19 +2221,19 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
22212221 }
22222222 // ********************************************************* Step 10: data directory maintenance
22232223
2224-
2225- // if pruning, unset the service bit and perform the initial blockstore prune
2224+ // if pruning, perform the initial blockstore prune
22262225 // after any wallet rescanning has taken place.
22272226 if (fPruneMode ) {
2228- LogPrintf (" Unsetting NODE_NETWORK on prune mode\n " );
2229- nLocalServices = ServiceFlags (nLocalServices & ~NODE_NETWORK);
22302227 if (!fReindex ) {
22312228 LOCK (cs_main);
22322229 for (CChainState* chainstate : chainman.GetAll ()) {
22332230 uiInterface.InitMessage (_ (" Pruning blockstore…" ).translated );
22342231 chainstate->PruneAndFlush ();
22352232 }
22362233 }
2234+ } else {
2235+ LogPrintf (" Setting NODE_NETWORK on non-prune mode\n " );
2236+ nLocalServices = ServiceFlags (nLocalServices | NODE_NETWORK);
22372237 }
22382238
22392239 // As PruneAndFlush can take several minutes, it's possible the user
You can’t perform that action at this time.
0 commit comments