Skip to content

DIP3 compatibility code#2255

Merged
UdjinM6 merged 11 commits into
dashpay:developfrom
codablock:pr_dip3_logic
Sep 3, 2018
Merged

DIP3 compatibility code#2255
UdjinM6 merged 11 commits into
dashpay:developfrom
codablock:pr_dip3_logic

Conversation

@codablock
Copy link
Copy Markdown

@codablock codablock commented Sep 3, 2018

This PR is extracted from #2083. It adds compatibility code to CMasternode and CMosternodeMan so that all code using these classes switch to deterministic mode when spork15 is activated.

I omitted the MN rewards/payments related changes for now and will put these into their own PR as they contain the most critical code.

@UdjinM6 UdjinM6 added this to the 12.4 milestone Sep 3, 2018
@codablock
Copy link
Copy Markdown
Author

codablock commented Sep 3, 2018

FYI, I'm aware that the many if(spork15Active) blocks that I introduced are very bad code quality and style. I however chose to go this way so that the changes outside CMasternode and CMasternodeMan are as non-intrusive as possible. After 12.4 has been rolled out and the BIP9 and spork15 deployment logic is activated, I will cleanup all the code. Cleanup means, that most of the legacy code will actually vanish and most places would directly use CDeterministicMNManager instead of going through the old CMasternodeMan code.

Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

small code style issue, otherwise looks good imo 👍

Comment thread src/activemasternode.cpp Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

code style: Braces on new lines for namespaces, classes, functions, methods.

Comment thread src/activemasternode.cpp Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

Comment thread src/activemasternode.cpp Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

Comment thread src/activemasternode.h Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

Comment thread src/activemasternode.h Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same or make it one-liner

Comment thread src/activemasternode.h Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same as above

Comment thread src/masternodeman.cpp Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same

@codablock
Copy link
Copy Markdown
Author

Pushed review fixes

Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

👍

utACK

@UdjinM6 UdjinM6 merged commit 794921b into dashpay:develop Sep 3, 2018
@codablock codablock deleted the pr_dip3_logic branch September 14, 2018 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants