-
Notifications
You must be signed in to change notification settings - Fork 258
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
Conversation
let status = checkName(node) | ||
node.updateStatus(status, ApiNodeFailure()) | ||
if status == RestBeaconNodeStatus.Noname: | ||
warn "Cannot initialize beacon node", node = node, status = status |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offline == initialized?
2e8d2d7
to
40f4ed0
Compare
No description provided.