diff --git a/src/init.cpp b/src/init.cpp index 2175b7e26..2877dd288 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1649,6 +1649,14 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // Disable clearnet peers if -clearnet=0 if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) { +#ifdef ENABLE_MINING + // mining to the same taddr links different txs together as from the same owner + // and if using -clearnet=0 that can be used to link together different .onions + // as being the same entity, because they are mining to the same taddr + if (mapArgs.count("-mineraddress")) { + return InitError(_("-mineraddress and -clearnet=0 cannot be used together because it would reduce your privacy!")); + } +#endif SoftSetBoolArg("-disableipv4", true); SoftSetBoolArg("-disableipv6", true); SoftSetBoolArg("-dns", false);