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

Node/CCQ: Server auto reconnect #3611

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

bruce-riley
Copy link
Contributor

@bruce-riley bruce-riley commented Dec 20, 2023

In testnet, the CCQ proxy server is not detecting when a guardian restarts. As a work around, this PR adds the ability for the server to attempt to automatically reconnect when it detects that a bootstrap peer has gone away.

This feature is only intended to be used in testnet, and is controlled by a config parameter, monitorPeers.

This PR also changes some CCQ log messages from error to debug so that routine conditions (like block not available yet) don't flood the logs.

@bruce-riley bruce-riley marked this pull request as ready for review December 21, 2023 15:01
Copy link
Contributor

@evan-gray evan-gray left a comment

Choose a reason for hiding this comment

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

Might need to switch some of those debugs back later, but such errors have been limited in testing (or can be determined by testing)

@bruce-riley bruce-riley merged commit 8590089 into main Dec 21, 2023
22 checks passed
@bruce-riley bruce-riley deleted the node/ccq/server_auto_reconnect branch December 21, 2023 20:28
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