Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Apr 3, 2015

It's more than a year ago, so just replace the 75%/95% version counting logic with a static historic switchover point.

Rebase of #5562:

  • Kept IsSuperMajority as it's used by BIP66 checks
  • Moved nBIP34Height to the new consensus params structure

It's more than a year ago, so just replace the 75%/95% version counting
logic with a static historic switchover point.
@laanwj
Copy link
Member Author

laanwj commented Apr 3, 2015

Looks like this breaks the pull tester, which relies on BIP34 switch-over logic as it was.

@jgarzik
Copy link
Contributor

jgarzik commented Apr 5, 2015

tested ACK

@laanwj
Copy link
Member Author

laanwj commented Apr 8, 2015

@jgarzik Thanks for testing

@TheBlueMatt can you take a look? It looks like we'll have to change some assumptions in the comparson tool.

@jtimon
Copy link
Contributor

jtimon commented Apr 20, 2015

Here's a version rebased on top of #5968 and adding so more consensus params to avoid that ContextualCheckBlockHeader has to have a new couple of lines every time that a softfork gets old enough to enforce it by height rather than voting:

https://github.com/bitcoin/bitcoin/compare/master...jtimon:bip34_switchover?expand=1

@luke-jr
Copy link
Member

luke-jr commented Jun 2, 2015

Minor bug*: If the blockchain were reorganised off the switchover block, we would be breaking consensus here. I wonder if it might be good to abstract #5927 so its logic is reusable for things like this. That is, instead of "when do we enforce BIP34?", we ask "what blocks are permitted to skip BIP34 validation?"

* This is only a bug when checkpoints are disabled or #5927 is merged.

@laanwj
Copy link
Member Author

laanwj commented Jul 3, 2015

Closing this. It has no priority at all. I suppose this could be taken as part of the new bit-based softfork tracking system, at least when the old system is removed.

@laanwj laanwj closed this Jul 3, 2015
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants