Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Oct 3, 2019

While reviewing #3127 I suggested that we should keep sync_masternodes assuming it was helping tests to pass... but after digging a bit I realized that I was wrong and we don't need sync_masternodes and wait_to_sync in tests that do not use MNs at all actually. These functions were introduced in #950 back when we had non-deterministic MN list. They are still useful for MN test nodes (MNs won't accept incoming connections while syncing, there is actually a bug related to this in dip3-deterministicmns.py which is fixed in the second commit) but we can drop them everywhere else. Also, there is no need for the "slow" sync mode, it's always the "fast" one now and we can simplify the function.

codablock
codablock previously approved these changes Oct 4, 2019
Copy link

@codablock codablock 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
Copy link
Author

UdjinM6 commented Oct 7, 2019

Rebased to fix merge conflicts after #3127

…ntroduce `force_finish_mnsync` for MNs only
…d drop local unused functions

Also move the call, `force_finish_mnsync` should be called before `connect_nodes_bi`
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

re-utACK

Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

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

utACK

(from test_framework.util import * makes me cringe a bit, not related to this refactoring though.)

@UdjinM6 UdjinM6 merged commit e0c5624 into dashpay:develop Oct 9, 2019
@UdjinM6 UdjinM6 deleted the dropwaitsync branch November 26, 2020 13:26
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