Skip to content

Conversation

@CodeShark
Copy link
Contributor

CODE MOVE ONLY

This PR creates a new unit which will be handling soft fork logic. For now all we do is move IsSuperMajority() from main.cpp to consensus/softforks.cpp.

@dcousens
Copy link
Contributor

dcousens commented Oct 8, 2015

utACK

@CodeShark CodeShark changed the title ISM to softforks unit IsSuperMajority() moved to separate soft forks unit Oct 8, 2015
@jonasschnelli
Copy link
Contributor

utACK

@paveljanik
Copy link
Contributor

Please clean up class/struct Params:

src pavel$ grep "[class|strict] Params" consensus/*h
consensus/params.h:struct Params {
consensus/softforks.h:class Params;
src pavel$ 

Copy link
Contributor

Choose a reason for hiding this comment

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

As pointed out by @paveljanik, this should be a struct.

@CodeShark
Copy link
Contributor Author

@paveljanik @dcousens Fixed class->struct

Copy link
Contributor

Choose a reason for hiding this comment

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

If we're going to eventually use this for Hardfork consensus changes too, maybe it would be better to have a more generic name for the file/module: forks, changes, upgrades?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jtimon could be done later

Copy link
Contributor

Choose a reason for hiding this comment

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

Or could be done now with less total work, that's the point.

@jtimon
Copy link
Contributor

jtimon commented Oct 11, 2015

Apart from my bike-shedding nits, ut ACK.

@jtimon
Copy link
Contributor

jtimon commented Jan 3, 2016

I changed my mind about this. I prefer something like jtimon@8ec8241 again.
NACK
In any case rebase or close?

@dcousens
Copy link
Contributor

dcousens commented Jan 3, 2016

@jtimon why do you prefer it?

Still utACK from me, but needs rebase

@jtimon
Copy link
Contributor

jtimon commented Jan 3, 2016

It's simpler and achieves the task of encapsulating consensus code more simply (although of course this is relative). I don't think a UseRule() function is interesting getting the consensus validation flags that include those rules (and I would unify other future consensus flags [like the one for bip113] with the script ones too).

@jtimon
Copy link
Contributor

jtimon commented Jan 3, 2016

Sorry, that was a mistake, I thought I was talking on #6747 . This is just a tiny and pointless moveonly IMO.
Instead of this, I would prefer something like this jtimon@f8c34f2 (see https://github.com/jtimon/bitcoin/commits/libconsensus-f2 for the "big picture" and #7091 for the pre-document-with-words-and-pictures opened first step).

@CodeShark
Copy link
Contributor Author

@dcousens Rebasing - will push shortly. #6747 that is, not this one.

@btcdrak
Copy link
Contributor

btcdrak commented Apr 5, 2016

I think we can close this now. Also I recall talk of replacing the ISM checks with block heights.

@laanwj laanwj closed this Apr 6, 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.

7 participants