Skip to content

Commit

Permalink
rollback eloffline
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Feb 2, 2025
1 parent 2953464 commit 4c6c138
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions beacon/goclient/goclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,11 @@ func (gc *GoClient) Healthy(ctx context.Context) error {
syncState := nodeSyncingResp.Data
recordBeaconClientStatus(ctx, statusSyncing, gc.multiClient.Address())
recordSyncDistance(ctx, syncState.SyncDistance, gc.multiClient.Address())

if syncState.ELOffline {
gc.log.Error("Consensus client using offline execution node")
return fmt.Errorf("eloffline")
}
//
//if syncState.ELOffline {
// gc.log.Error("Consensus client using offline execution node")
// return fmt.Errorf("eloffline")
//}

if syncState.IsSyncing && syncState.SyncDistance > gc.syncDistanceTolerance {
gc.log.Error("Consensus client is not synced")
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c // indirect
github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
Expand Down Expand Up @@ -253,6 +253,6 @@ replace github.com/dgraph-io/ristretto => github.com/dgraph-io/ristretto v0.1.1-

// github.com/attestantio/go-eth2-client considers node as synced if is_syncing is false,
// however, it's been observed that it may take up to around 50 slots until is_syncing becomes true,
// which causes downtime. This fork adds support for custom sync distance and retrieving el status.
// Using a fix from https://github.com/y0sher/go-eth2-client/commits/aa04e8cab0f282344dd887a59b3dc26ce4e80b7c
replace github.com/attestantio/go-eth2-client => github.com/y0sher/go-eth2-client v0.0.0-20250202105610-aa04e8cab0f2
// which causes downtime.
// Using a fix from https://github.com/nkryuchkov/go-eth2-client/commits/fix-multi-rotation-v0.21.7/
replace github.com/attestantio/go-eth2-client => github.com/nkryuchkov/go-eth2-client v0.0.0-20250128220448-69c1f6bda599
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8m
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
github.com/nkryuchkov/go-eth2-client v0.0.0-20250128220448-69c1f6bda599 h1:2+BPHc7DR3H4lYwSXP7MVUIyd/R2U14RwqedznYAvMc=
github.com/nkryuchkov/go-eth2-client v0.0.0-20250128220448-69c1f6bda599/go.mod h1:d7ZPNrMX8jLfIgML5u7QZxFo2AukLM+5m08iMaLdqb8=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY=
Expand Down Expand Up @@ -811,8 +813,6 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRT
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
github.com/xtaci/kcp-go v5.4.20+incompatible/go.mod h1:bN6vIwHQbfHaHtFpEssmWsN45a+AZwO7eyRCmEIbtvE=
github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae/go.mod h1:gXtu8J62kEgmN++bm9BVICuT/e8yiLI2KFobd/TRFsE=
github.com/y0sher/go-eth2-client v0.0.0-20250202105610-aa04e8cab0f2 h1:+ojo7aobfyUORbtQxHXxGAJlJifhW8AswkOyp8gybJA=
github.com/y0sher/go-eth2-client v0.0.0-20250202105610-aa04e8cab0f2/go.mod h1:d7ZPNrMX8jLfIgML5u7QZxFo2AukLM+5m08iMaLdqb8=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down

0 comments on commit 4c6c138

Please sign in to comment.