Verify that newly mined nVersion=2 block coinbase height is correct #1804

pull jgarzik wants to merge 1 commits into bitcoin:master from jgarzik:strict-accept changing 3 files +9 −8
  1. jgarzik commented at 4:33 AM on September 9, 2012: contributor

    Checks are applied to: getwork RPC submission, internal miner submission, and submitblock RPC submission.

    Arguably pointless for the first two, as 'getwork' miners cannot change that field, but it is a sanity check even in those cases.

  2. Verify that newly mined nVersion=2 block coinbase height is correct 19b1145968
  3. luke-jr commented at 6:41 AM on September 9, 2012: member

    IMO, this should be optional, as no reasonable miner would want to have it on mainnet.

  4. BitcoinPullTester commented at 8:43 AM on September 9, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/19b1145968a83ab379985eac540e8ee52a09f322 for binaries and test log.

  5. jgarzik commented at 4:35 PM on September 9, 2012: contributor

    If miners want a knob to disable, that's easy to add... or, it is similarly easy to patch the source at the callsite.

    I'll wait and see what the other devs prefer... can add a command line argument to disable, if that's what people prefer.

  6. luke-jr commented at 5:19 PM on September 9, 2012: member

    Maybe it would make sense to hard-fail on testnet, and set "errors" (getinfo etc) on mainnet (while still posting the block)?

  7. gmaxwell commented at 6:42 PM on September 9, 2012: contributor

    Funny, I was just about to suggest "errors" too. In addition, it could submit the block like normal, but then refuse all further getblocktemplate calls until the process is restarted. dunno, perhaps over complexifying it. The current behavior is a bit dangerous, a widely used miner program could be getting this wrong and go along unnoticed right to the cutoff point, causing the majority of the hash power to be lost all at once.

  8. luke-jr commented at 8:53 PM on September 9, 2012: member

    I like that idea about accepting the block internally yet giving the submitter a rejection anyway. Seems the ideal of both worlds and gets the message across clearly.

  9. jgarzik commented at 5:30 PM on September 24, 2012: contributor

    Closing, not worth the effort of revision to suit the crowd

  10. jgarzik closed this on Sep 24, 2012

  11. jgarzik deleted the branch on Aug 24, 2014
  12. DrahtBot 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-04-20 00:16 UTC

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