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

Fix new pool url detection #18521

Merged

Conversation

felixbrucker
Copy link
Contributor

#17384 introduced a new feature which updates the pool url in the config file, if a change is detected. This however always triggered (bug), but only updated the config if the url actually differed.

With the addition of #18341 an error log line was (incorrectly) added, which made this bug visible, as currently the only use of the function should always produce a config update (but that does not need to be the case).

This PR fixes the bug and removes the incorrect error log line, any errors in the closure are caught by the try/except block. If we want to log whether the config entry was found we need another variable to keep track of that, as updated is not suitable for that.

@felixbrucker felixbrucker requested a review from a team as a code owner August 24, 2024 13:11
@felixbrucker felixbrucker force-pushed the fix-new-pool-url-detection branch from 5a2059f to 2d489da Compare August 24, 2024 13:14
@felixbrucker felixbrucker force-pushed the fix-new-pool-url-detection branch from 2d489da to 896e934 Compare August 25, 2024 11:52
arvidn
arvidn previously approved these changes Aug 25, 2024
Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

looks good to me

arvidn
arvidn previously approved these changes Aug 25, 2024
@pmaslana pmaslana added Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_review labels Sep 5, 2024
@cmmarslender cmmarslender merged commit a617ed5 into Chia-Network:main Sep 13, 2024
370 of 371 checks passed
@felixbrucker felixbrucker deleted the fix-new-pool-url-detection branch September 14, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-pr Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants