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

VC: Fix VC must not crash if beacon node address could not be resolved. #5388

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

cheatfate
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Unit Test Results

         9 files  ±0    1 089 suites  ±0   39m 35s ⏱️ - 1m 5s
  3 847 tests ±0    3 568 ✔️ ±0  279 💤 ±0  0 ±0 
15 892 runs  ±0  15 587 ✔️ ±0  305 💤 ±0  0 ±0 

Results for commit 90d0910. ± Comparison against base commit cd68c71.

♻️ This comment has been updated with latest results.

let status = checkName(node)
node.updateStatus(status, ApiNodeFailure())
if status == RestBeaconNodeStatus.Noname:
warn "Cannot initialize beacon node", node = node, status = status
Copy link
Member

Choose a reason for hiding this comment

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

will this be printed every 2 seconds on a node without name?

Copy link
Contributor Author

@cheatfate cheatfate Sep 8, 2023

Choose a reason for hiding this comment

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

yup, but only in situation when there no any node with name available, if there will be at least one node with name available this string will not be printed. Its initial check before we obtaining genesis. So it will print this message every 2 seconds for every beacon node in list.

@@ -282,7 +296,10 @@ proc asyncInit(vc: ValidatorClientRef): Future[ValidatorClientRef] {.async.} =
beacon_nodes_count = len(vc.beaconNodes)

for node in vc.beaconNodes:
notice "Beacon node initialized", node = node
if node.status == RestBeaconNodeStatus.Offline:
Copy link
Member

Choose a reason for hiding this comment

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

offline == initialized?

@arnetheduck arnetheduck merged commit aec953e into unstable Sep 15, 2023
11 checks passed
@arnetheduck arnetheduck deleted the http-address branch September 15, 2023 05:34
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.

None yet

2 participants