@@ -759,10 +759,7 @@ void InitParameterInteraction()
759
759
if (GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY)) {
760
760
if (SoftSetBoolArg (" -whitelistrelay" , false ))
761
761
LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n " , __func__);
762
- #ifdef ENABLE_WALLET
763
- if (SoftSetBoolArg (" -walletbroadcast" , false ))
764
- LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n " , __func__);
765
- #endif
762
+ // walletbroadcast is disabled in CWallet::ParameterInteraction()
766
763
}
767
764
768
765
// Forcing relay from whitelisted hosts implies we will accept relays from them in the first place.
@@ -821,12 +818,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
821
818
return InitError (" Initializing networking failed" );
822
819
823
820
#ifndef WIN32
824
- if (GetBoolArg (" -sysperms" , false )) {
825
- #ifdef ENABLE_WALLET
826
- if (!GetBoolArg (" -disablewallet" , false ))
827
- return InitError (" -sysperms is not allowed in combination with enabled wallet functionality" );
828
- #endif
829
- } else {
821
+ if (!GetBoolArg (" -sysperms" , false )) {
830
822
umask (077 );
831
823
}
832
824
@@ -854,15 +846,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
854
846
855
847
// also see: InitParameterInteraction()
856
848
857
- // if using block pruning, then disable txindex
849
+ // if using block pruning, then disallow txindex
858
850
if (GetArg (" -prune" , 0 )) {
859
851
if (GetBoolArg (" -txindex" , DEFAULT_TXINDEX))
860
852
return InitError (_ (" Prune mode is incompatible with -txindex." ));
861
- #ifdef ENABLE_WALLET
862
- if (GetBoolArg (" -rescan" , false )) {
863
- return InitError (_ (" Rescans are not possible in pruned mode. You will need to use -reindex which will download the whole blockchain again." ));
864
- }
865
- #endif
866
853
}
867
854
868
855
// Make sure enough file descriptors are available
0 commit comments