Skip to content

Commit

Permalink
fix(op-geth):fix static peer cannot reassign header tasks (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr authored Feb 22, 2024
1 parent 8377b0e commit 993383b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eth/protocols/eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
package eth

import (
"errors"
"fmt"
"math/big"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/etherror"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode"
Expand Down Expand Up @@ -162,11 +160,11 @@ func Handle(backend Backend, peer *Peer) error {
case errors.Is(err, etherror.ErrNoHeadersDelivered):
// ignore no headers delivered
peer.Log().Warn("Message handling failed with no headers")
*/
case errors.Is(err, etherror.ErrHeaderBatchAnchorLow):
// ignore lower header anchor within tolerance
peer.Log().Warn("Message handling failed with lower batch anchor")
case errors.Is(err, etherror.ErrHeaderBatchAnchorLow):
// ignore lower header anchor within tolerance
peer.Log().Warn("Message handling failed with lower batch anchor")
*/
case err != nil:
peer.Log().Debug("Message handling failed in `eth`", "err", err)
return err
Expand Down

0 comments on commit 993383b

Please sign in to comment.