No description provided.
Implement BIP66 (0.8) #5765
pull sipa wants to merge 3 commits into bitcoin:0.8 from sipa:bip66_0.8 changing 7 files +220 −6-
sipa commented at 7:19 PM on February 6, 2015: member
-
Implement BIP 66 validation rules and switchover logic da7ba593d7
-
Backport of some of BIP66's tests 6690ef7fea
-
Raise version of created blocks, and enforce DERSIG in mempool 534e6dac47
-
laanwj commented at 11:32 AM on February 9, 2015: member
utACK
-
sdaftuar commented at 7:06 PM on February 11, 2015: member
Tested deployment using the same framework as I used in the other similar pulls (after first adding regtest support to the code) -- worked as expected.
I'm not sure whether this is even worth mentioning, but I noticed that there are a couple places in the code where we check that a signature produced by bitcoind passes verification (
rpcrawtransaction.cpp:519andscript.cpp:1639), and to be completely consistent with the change to enforce DERSIG in the mempool, perhaps those calls to VerifyScript should be done with DERSIG as well? (Right now they're called withSCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC.) -
sipa commented at 10:25 PM on February 11, 2015: member
@sdaftuar Thanks for the tests, and nice catch, though it shouldn't matter. When combined with the standardness requirements, STRICTENC and DERSIG should be identical (they can differ when the result of a CHECKSIG is negated, but there are no standard scripts that do so).
- laanwj merged this on Feb 17, 2015
- laanwj closed this on Feb 17, 2015
- laanwj referenced this in commit 9d11aba4c4 on Feb 17, 2015
-
rebroad commented at 10:37 AM on July 7, 2015: contributor
Ok so given how this fork has gone horribly wrong - i.e. people advertised they would support BIP66, so the software switched over to the new rules only to discover that mining continues with the old rules - I propose that future hardforks include a FALL-BACK in the event that it is determined that not 95% is actually implementing the new rules. Is this possible to do for future hard-forks?
-
sipa commented at 1:40 PM on July 7, 2015: member
This was not a hard fork, and no, detecting that miners are not implementing the rules correctly is not possible in a consensus-safe way, as far as I know.
The solution to this is just educating miners that they risk all their income by doing so...
-
rebroad commented at 10:59 AM on March 17, 2016: contributor
@sipa it would be possible I am sure, by analysing the InvalidBlocks that are coming though and checking if they would be valid in the case of a fall-back - if there are a sufficient number of these invalid blocks, then it would trigger the fall-back.
- DrahtBot locked this on Sep 8, 2021