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

Increase MAX_REPEATED_REQUESTS #7069

Conversation

HenrikJannsen
Copy link
Collaborator

@HenrikJannsen HenrikJannsen commented Apr 1, 2024

Increase MAX_REPEATED_REQUESTS from 20 to 30 and in case we are a seed node to 100.

This should mitigate issues when we the last release was long ago and the seed nodes have not updated yet to a new release. The historical data would not be considered in that case and the new node would request all the missing data, which can hit the limit of 20 repeated GetDataRequests. Then if the get data process was never completed we do not load the DaoHashes, thus DAO sync never starts.

The reason to increase for seed nodes more is to ensure that seed nodes would enter a deadlock when one has updated but the others not.

@jmacxx @alvasw : Here is a branch on my repo for seed nodes to temporary update.
https://github.com/HenrikJannsen/bisq/tree/update-to-version-1.9.15-and-add-accountAge-and-tradeStat-resources

This set the version to 1.9.15 and adds the resources but no the DAO data we still don't know if the DAO data are correct.
This branch can be used by seed nodes to update (best to update only 50% initially and test then) so that we can further test the DAO state with the release candidate.
If all OK the release candidate might update the resource files from that branch as it contains more recent data. But not a hard requirement...

…d node to 100.

In case the other seed node has not updated the historical data is not taken into account, thus we would get more repeated requests until all data is received. To avoid that we get stuck we increase the limit.

Signed-off-by: HenrikJannsen <[email protected]>
HenrikJannsen added a commit to HenrikJannsen/bisq that referenced this pull request Apr 1, 2024
bisq-network#7069 and bisq-network#7070 as well as more recent resource data

Signed-off-by: HenrikJannsen <[email protected]>
Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

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

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit 54b75ce into bisq-network:master Apr 9, 2024
3 checks passed
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.16 milestone Apr 9, 2024
@HenrikJannsen HenrikJannsen deleted the improve-handling-of-MAX_REPEATED_REQUESTS branch June 13, 2024 07:39
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