Skip to content

Remove all legacy/compatibility MN code#2600

Merged
UdjinM6 merged 37 commits intodashpay:developfrom
codablock:pr_dip3_cleanup_legacycode
Jan 3, 2019
Merged

Remove all legacy/compatibility MN code#2600
UdjinM6 merged 37 commits intodashpay:developfrom
codablock:pr_dip3_cleanup_legacycode

Conversation

@codablock
Copy link

The code removed by this PR is unused already (after #2594 was merged), making it safe to remove all of it.

The next PR will refactor the remains of CMasternodeMan into CMasternodeMetaMan.

There are still places where these are used in the code. The next commits
will clean these up.
Also replace all uses of IsMasternodeListSynced and IsWinnersListSynced
with IsBlockchainSynced.
…kTxOuts

...and let it crash instead. We expect this method to be called with the
correct height now (after DIP3 was fully deployed).
Only masternodes sign governance objects, so there is no need for ECDSA
support here anymore.
@codablock codablock added this to the 14.0 milestone Jan 2, 2019
… miner tests

This test is crashing otherwise in GetBlockTxOuts as it tries to access a
previous block that is not existing.
Even though DIP3 was active on BIP9 level, the spork was not active yet at
that point meaning that payments were not enforced at that time.
@codablock codablock force-pushed the pr_dip3_cleanup_legacycode branch from 3e2bcef to 25d9dcb Compare January 2, 2019 12:20
@UdjinM6
Copy link

UdjinM6 commented Jan 2, 2019

Looks good, will compile and test a bit.

@codablock
Copy link
Author

Also added df984f7, after the discussion we had. Turned out that the whole if/else block got unnecessary now.

…nValid returns false

IsTransactionValid already handles the case where IsDIP3Active() returns
false, making it return true.
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.

Synced from scratch and reindexed with all files in place with no issues. Mixing/IS-ing seems to be working (client-side). Noticed just one small issue while compiling, see suggestions.

@UdjinM6
Copy link

UdjinM6 commented Jan 2, 2019

Actually, one more thing :) should drop OUTPOINT_SPENT from masternodelist help https://github.com/dashpay/dash/pull/2600/files#diff-2299202f279425882d30bc2300dfbb11R149

@codablock codablock force-pushed the pr_dip3_cleanup_legacycode branch from 33c0f32 to 392d119 Compare January 2, 2019 18:03
@codablock
Copy link
Author

Forgot to mention: pushed the last 2 changes requested. Github had issues at that time, so notifications might not be sent out.

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.

Slightly tested, ACK 👍

@UdjinM6 UdjinM6 merged commit f95aae2 into dashpay:develop Jan 3, 2019
@UdjinM6 UdjinM6 added the RPC Some notable changes to RPC params/behaviour/descriptions label Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RPC Some notable changes to RPC params/behaviour/descriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants