Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send outdated MNs on sync #1373

Merged
merged 1 commit into from
Mar 1, 2017
Merged

Do not send outdated MNs on sync #1373

merged 1 commit into from
Mar 1, 2017

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 28, 2017

No description provided.

@tgflynn
Copy link

tgflynn commented Feb 28, 2017

Makes sense but is there any reason to think this is causing problems ?

@UdjinM6
Copy link
Author

UdjinM6 commented Mar 1, 2017

I noticed that node was burning cpu and spamming debug.log processing few hundreds of outdated nodes which all came "in one pack". I guess it was also busy requesting invs at the very same time and as a result of this coincidence sync timed out too early. Even if that was not the main reason I guess it's no good to spam nodes with outdated MNs anyway (could probably add Misbehaving on receiving side too to mitigate this better but I wouldn't push that without protobump and without rolling out on testnet first).

@tgflynn
Copy link

tgflynn commented Mar 1, 2017

UPDATE_REQUIRED notes only represent about 10% of the total do I don't see this having a large effect.

Still I don't see a downside so, utACK.

@UdjinM6 UdjinM6 merged commit 119fe83 into dashpay:v0.12.1.x Mar 1, 2017
UdjinM6 added a commit to UdjinM6/dash that referenced this pull request Feb 12, 2018
Reverts dashpay#1373, we need non-upgraded MNs to verify their old govvotes
@UdjinM6 UdjinM6 mentioned this pull request Feb 12, 2018
UdjinM6 added a commit that referenced this pull request Feb 12, 2018
* Do not filter non-upgraded mns in DSEG

Reverts #1373, we need non-upgraded MNs to verify their old govvotes

* Split mn list/single vin logic for DSEG

This should prevent looping till the end of the list if we were asked for a single mn and a) we have it but some following `if` has failed or b) we don't have it. It also should be a bit easier to follow the logic this way.
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
* Do not filter non-upgraded mns in DSEG

Reverts dashpay#1373, we need non-upgraded MNs to verify their old govvotes

* Split mn list/single vin logic for DSEG

This should prevent looping till the end of the list if we were asked for a single mn and a) we have it but some following `if` has failed or b) we don't have it. It also should be a bit easier to follow the logic this way.
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 28, 2019
* Do not filter non-upgraded mns in DSEG

Reverts dashpay#1373, we need non-upgraded MNs to verify their old govvotes

* Split mn list/single vin logic for DSEG

This should prevent looping till the end of the list if we were asked for a single mn and a) we have it but some following `if` has failed or b) we don't have it. It also should be a bit easier to follow the logic this way.
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Mar 2, 2019
* Do not filter non-upgraded mns in DSEG

Reverts dashpay#1373, we need non-upgraded MNs to verify their old govvotes

* Split mn list/single vin logic for DSEG

This should prevent looping till the end of the list if we were asked for a single mn and a) we have it but some following `if` has failed or b) we don't have it. It also should be a bit easier to follow the logic this way.
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