Skip to content

Conversation

@knst
Copy link
Collaborator

@knst knst commented Jul 3, 2023

Issue being fixed or feature implemented

During implementation #5469 (master node hard-fork) I noticed that some parts of CChainParams are deprecated and can be removed.

What was done?

  1. removed methods from CChainParams that have no implementation at all:
  • UpdateSubsidyAndDiffParams
  • UpdateLLMQChainLocks
  • UpdateLLMQTestParams
  • UpdateLLMQDevnetParams
  1. removed method BIP9CheckMasternodesUpgraded from CChainParams and a flag check_mn_protocol from versionbitsinfo.
    (to follow-up Directly use deterministicMNManager instead of compat code in CMasternodeMan #2594)

How Has This Been Tested?

Run functional/unit tests.

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

knst added 2 commits July 3, 2023 14:15
It removes 2 unused flags:
 - BIP9CheckMasternodesUpgraded from CChainParams
 - check_mn_protocol from versionbitsinfo

These flags have no meaning since 17c792c (PR dashpay#2594)

The TODO in removed code is super-seeded by new way to validate MN version
in hard-fork (see dashpay#5469 and DIP0023 for more details)
@knst knst added this to the 20 milestone Jul 3, 2023
@knst knst requested review from PastaPastaPasta and UdjinM6 July 3, 2023 09:00
Copy link

@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

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK for squash merge

@PastaPastaPasta PastaPastaPasta merged commit e4c7f38 into dashpay:develop Jul 4, 2023
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.

3 participants