Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Remote relay aggregator started even if secondary remote endpoints not configured #17

Closed
ctRAC3r opened this issue Dec 3, 2022 · 2 comments

Comments

@ctRAC3r
Copy link

ctRAC3r commented Dec 3, 2022

Builder (main branch) attempts to start the relay aggregator even if secondary relay endpoint(s) are not set:

INFO [12-03|19:17:59.193] requesting                               currentSlot=0
INFO [12-03|19:17:59.602] Updated validators                       count=54 slot=0
INFO [12-03|19:17:59.602] requesting                               currentSlot=0
ERROR[12-03|19:17:59.602] could not get validators map from relay, retrying err="Get \"/relay/v1/builder/validators\": unsupported protocol scheme \"\""
ERROR[12-03|19:18:00.603] could not get validators map from relay, retrying err="Get \"/relay/v1/builder/validators\": unsupported protocol scheme \"\""
ERROR[12-03|19:18:01.603] could not get validators map from relay, retrying err="Get \"/relay/v1/builder/validators\": unsupported protocol scheme \"\""
ERROR[12-03|19:18:02.605] could not get validators map from relay  err="Get \"/relay/v1/builder/validators\": unsupported protocol scheme \"\""
ERROR[12-03|19:18:02.605] could not connect to remote relay, continuing anyway err="Get \"/relay/v1/builder/validators\": unsupported protocol scheme \"\""

This happens because strings.Split returns a slice of length 1 with the original string ("") if it can't match the separator (","):

cfg.SecondaryRemoteRelayEndpoints = strings.Split(ctx.String(BuilderSecondaryRemoteRelayEndpoints.Name), ",")

Making the following change fixes the issue:

if len(cfg.SecondaryRemoteRelayEndpoints) > 0 {

-  if len(cfg.SecondaryRemoteRelayEndpoints) > 0 { 
+  if cfg.SecondaryRemoteRelayEndpoints[0] != "" {
@Ruteri
Copy link
Collaborator

Ruteri commented Dec 5, 2022

Fixed in d8e0390

@ctRAC3r ctRAC3r closed this as completed Dec 5, 2022
@Ruteri
Copy link
Collaborator

Ruteri commented Dec 5, 2022

Thank you @ctRAC3r for raising the issue!

avalonche added a commit that referenced this issue Feb 7, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this issue Mar 9, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this issue Mar 15, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this issue Mar 17, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this issue Mar 22, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this issue Jul 6, 2023
* Add block build trigger from beacon node

* remove empty block building

Co-authored-by: avalonche <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants