File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -743,6 +743,16 @@ void InitParameterInteraction()
743
743
if (SoftSetBoolArg (" -rescan" , true ))
744
744
LogPrintf (" %s: parameter interaction: -zapwallettxes=<mode> -> setting -rescan=1\n " , __func__);
745
745
}
746
+
747
+ // disable walletbroadcast and whitelistalwaysrelay in blocksonly mode
748
+ if (GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY)) {
749
+ if (SoftSetBoolArg (" -whitelistalwaysrelay" , false ))
750
+ LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -whitelistalwaysrelay=0\n " , __func__);
751
+ #ifdef ENABLE_WALLET
752
+ if (SoftSetBoolArg (" -walletbroadcast" , false ))
753
+ LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n " , __func__);
754
+ #endif
755
+ }
746
756
}
747
757
748
758
/* * Initialize bitcoin.
You can’t perform that action at this time.
0 commit comments