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
  1. CodeShark commented at 3:39 PM on May 26, 2016: contributor

    In order to make it safer to merge consensus changes, we should disable mining via RPC on nonrelease branches.

  2. Disable mining on nonrelease branches. 5f7f820566
  3. btcdrak commented at 8:06 PM on May 26, 2016: contributor

    This would have an undesirable effect on testnet.

  4. sipa commented at 10:26 PM on May 26, 2016: member

    @btcdrak This PR only has an effect on mainnet.

  5. 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?

  6. jonasschnelli commented at 12:51 PM on May 27, 2016: contributor

    I'm not sure how efficient this change is. fDisableMiningOnNonreleaseBranches could be an additional obstacle for mining pools running patches/extended versions of core. Sure, they could just pass in a CLIENT_VERSION_IS_RELEASE but would this be the appropriate (patch Bitcoin Core, flag it as CLIENT_VERSION_IS_RELEASE)?

  7. CodeShark commented at 2:34 PM on May 27, 2016: contributor

    I think @sipa's idea of not adding the soft fork to the mainnet parameters is better so I'm closing this.

  8. CodeShark closed this on May 27, 2016

  9. 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.

  10. 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.

  11. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me