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: replace hc check to use the node functions #2084

Merged
merged 2 commits into from
Feb 4, 2025
Merged

Conversation

yaboiishere
Copy link
Contributor

This PR changes the way the mdw checks for a connection to the parent chain in a way that delegates the error handling to the node. The biggest difference is that now the node process responsible for the connection controlls when the code errors out. Now if the parent is reachable it checks periodically to see if the start_height is reached. Otherwise if it is unreachable the node gives a warning and checks again after a short interval.

@yaboiishere yaboiishere self-assigned this Feb 3, 2025
@dincho
Copy link
Member

dincho commented Feb 3, 2025

Would that still crash the mdw if the parent ode is temporarily unavailable?

@yaboiishere
Copy link
Contributor Author

Would that still crash the mdw if the parent ode is temporarily unavailable?

It will retry until it's available

@yaboiishere yaboiishere requested a review from sborrazas February 4, 2025 06:42
mix.exs Outdated
@@ -106,7 +106,8 @@ defmodule AeMdw.MixProject do
:sext,
:rocksdb,
:telemetry,
:aeapi
:aeapi,
:aec_parent_connector
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep this sorted alphabetically?

@sborrazas sborrazas merged commit efed991 into master Feb 4, 2025
7 checks passed
@sborrazas sborrazas deleted the fix-hc-checks branch February 4, 2025 11:22
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