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

Bound depth of hinted scheduler block traversal #4359

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

pwojcikdev
Copy link
Contributor

This PR limits the depth of the hinted scheduler block traversal to a maximum of 64 iterations, which should be enough for live network activity where cemented block differences are small. This prevents potential infinite loops.

dsiganos
dsiganos previously approved these changes Jan 15, 2024
Copy link
Contributor

@clemahieu clemahieu left a comment

Choose a reason for hiding this comment

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

Should this limit be configurable?

@pwojcikdev
Copy link
Contributor Author

Should this limit be configurable?

I'll add configuration in another PR since it looks like schedulers config needs to be a bit better organized

@pwojcikdev pwojcikdev merged commit b6bf117 into nanocurrency:develop Jan 15, 2024
17 of 19 checks passed
@pwojcikdev pwojcikdev deleted the bound-hinted-iterations branch January 15, 2024 19:05
clemahieu pushed a commit that referenced this pull request Jan 16, 2024
* Bound depth of hinted scheduler block traversal

* Return early when stopped
@qwahzi qwahzi added this to the V26.0 milestone Jan 16, 2024
@qwahzi qwahzi added this to Merged / V26.0 in Nano Roadmap Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Nano Roadmap
Merged / V26.0
Development

Successfully merging this pull request may close these issues.

None yet

4 participants