Skip to content

Conversation

@CodeShark
Copy link
Contributor

SoftForks Unit

This PR gathers the various soft fork mechanisms into one place making it more orderly. As a positive side effect, it will also make the VersionBits implementation simpler.

This PR depends on #6774

@dcousens
Copy link
Contributor

dcousens commented Oct 2, 2015

concept ACK, once over utACK

@luke-jr
Copy link
Member

luke-jr commented Oct 2, 2015

Can you put softforks.{cpp,h} under the consensus/ directory?

@CodeShark
Copy link
Contributor Author

@luke-jr yes.

@jonasschnelli
Copy link
Contributor

Nice!
utACK.

@btcdrak
Copy link
Contributor

btcdrak commented Oct 2, 2015

Concept ACK

@TheBlueMatt
Copy link
Contributor

Long-term isnt the goal to just switch enforcement of most softforks to blockheight/timestamp and then use versionbits globally? (I believe most things were rolled out via a IsSuperMajority-like system, and then the code was just simplified later by replacing the checks with what-the-switchover-date-was checks).

@CodeShark
Copy link
Contributor Author

@TheBlueMatt indeed - that's exactly what will end up happening once things are buried deeply enough.

@TheBlueMatt
Copy link
Contributor

Mmm, ok, well I hadnt really read the code to begin with and I figured you were jumping the gun, but the code does simplify things on its own, so concept ack that.

@CodeShark CodeShark force-pushed the softforks_unit branch 2 times, most recently from 2ddd2c8 to 1b00ad2 Compare October 2, 2015 11:39
@btcdrak
Copy link
Contributor

btcdrak commented Oct 4, 2015

I checked consensus is not affected by spinning up a new node and syncing from scratch. The node synced to the correct tip @ block 377385, 0000000000000000056d10c5f1cc9961ce2476da818a2fb4dd54ca3bcfb99a8d

ACK

@CodeShark
Copy link
Contributor Author

Rebased atop #6774 to make it easier to review code movements.

@CodeShark CodeShark force-pushed the softforks_unit branch 5 times, most recently from 3b067af to a77e1a9 Compare October 9, 2015 01:39
@jtimon
Copy link
Contributor

jtimon commented Oct 11, 2015

Apart from my nits on #6774, utACK

src/main.cpp Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these "look in consensus/softfork.cpp" comments really necessary or useful?

@jtimon
Copy link
Contributor

jtimon commented Oct 11, 2015

I liked '''Consensus::GetFlags''' see jtimon@9ba7d06 even more, but this is definitely a step in the right direction...

@dcousens
Copy link
Contributor

re-ACK

@jtimon
Copy link
Contributor

jtimon commented Oct 15, 2015

Wouldn't it make sense to rebase this on top of #6816 ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my optinion there's no need to include future softforks/hardforks here (perhaps with the exception of BIP65 which is already merged as a policy rule), they can add themselves in their own PRs if they're merged after this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@jtimon
Copy link
Contributor

jtimon commented Jan 3, 2016

Sorry, I meant to say the following here: #6774 (comment)

@CodeShark CodeShark force-pushed the softforks_unit branch 2 times, most recently from 3625715 to 47c6f9c Compare January 4, 2016 05:39
@jtimon
Copy link
Contributor

jtimon commented Mar 16, 2016

rebase or close for now?

@btcdrak
Copy link
Contributor

btcdrak commented Mar 16, 2016

I think 7575 supersedes this.

@jtimon
Copy link
Contributor

jtimon commented Mar 16, 2016

@btcdrak well, it would need to be greatly rewritten after #7575, but what I think is the general idea it's still possible, see jtimon@dd446fa and jtimon@0321823
But yeah, probably a new PR would be a better idea if it's going to be rewritten.

@maflcko
Copy link
Member

maflcko commented Mar 25, 2016

Needs rebase/new pull if still relevant

@laanwj
Copy link
Member

laanwj commented Mar 28, 2016

Closing for now

@laanwj laanwj closed this Mar 28, 2016
@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.

9 participants