Skip to content

Commit 9ebedc1

Browse files
committed
Merge pull request #7126
fa4b627 Move blocksonly parameter interaction to InitParameterInteraction() (MarcoFalke)
2 parents 74b5ce2 + fa4b627 commit 9ebedc1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/init.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
820820
// ********************************************************* Step 2: parameter interactions
821821
const CChainParams& chainparams = Params();
822822

823-
823+
// also see: InitParameterInteraction()
824824

825825
// if using block pruning, then disable txindex
826826
if (GetArg("-prune", 0)) {
@@ -833,16 +833,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
833833
#endif
834834
}
835835

836-
// disable walletbroadcast and whitelistalwaysrelay in blocksonly mode
837-
if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) {
838-
if (SoftSetBoolArg("-whitelistalwaysrelay", false))
839-
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -whitelistalwaysrelay=0\n", __func__);
840-
#ifdef ENABLE_WALLET
841-
if (SoftSetBoolArg("-walletbroadcast", false))
842-
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
843-
#endif
844-
}
845-
846836
// Make sure enough file descriptors are available
847837
int nBind = std::max((int)mapArgs.count("-bind") + (int)mapArgs.count("-whitebind"), 1);
848838
int nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);

0 commit comments

Comments
 (0)