In order to make it safer to merge consensus changes, we should disable mining via RPC on nonrelease branches.
Disable mining on nonrelease branches. #8101
pull CodeShark wants to merge 1 commits into bitcoin:master from CodeShark:disable_mining_on_nonrelease_branches changing 4 files +17 −0-
CodeShark commented at 3:39 PM on May 26, 2016: contributor
-
Disable mining on nonrelease branches. 5f7f820566
-
btcdrak commented at 8:06 PM on May 26, 2016: contributor
This would have an undesirable effect on testnet.
-
MarcoFalke commented at 7:16 AM on May 27, 2016: member
Assuming that miners runnning master already have their own patch set, how would this prevent them from creating a toggle-fDisableMiningOnNonreleaseBranches-patch?
-
jonasschnelli commented at 12:51 PM on May 27, 2016: contributor
I'm not sure how efficient this change is.
fDisableMiningOnNonreleaseBranchescould be an additional obstacle for mining pools running patches/extended versions of core. Sure, they could just pass in aCLIENT_VERSION_IS_RELEASEbut would this be the appropriate (patch Bitcoin Core, flag it asCLIENT_VERSION_IS_RELEASE)? - CodeShark closed this on May 27, 2016
-
laanwj commented at 11:03 AM on May 30, 2016: member
Assuming that miners runnning master already have their own patch set, how would this prevent them from creating a toggle-fDisableMiningOnNonreleaseBranches-patch?
Nothing does. But apparently people randomly check out Bitcoin Core without being aware of the risks of mining on master. Requiring an explicit source code change (especially if the source is commented as to why) puts up a stupidity barrier there.
-
MarcoFalke commented at 6:32 PM on May 30, 2016: member
Sure, but the same is a barrier to test mainnet-mining on master: E.g. "Let me quickly check if this bug is in master, too" or "Let's see if I need to change my workflow for the next bitcoin release by checking if current master breaks anything"...
It should be common sense that running bitcoin (especially master) could lead to monetary losses and adding such checks is just a unnecessary bloat of CChainParams and code in general. Otherwise, we could as well open pulls for "Disable wallet on nonrelease branches", etc.
I see that the intention of the pull was to make it "safer to merge consensus changes", but I think we should never merge consensus changes that could cause undesired behavior/hard-/soft-forks.
- MarcoFalke locked this on Sep 8, 2021