Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cl/sentinel/service/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"google.golang.org/grpc/credentials"

"github.com/erigontech/erigon-lib/common/math"
"github.com/erigontech/erigon-lib/direct"
sentinelrpc "github.com/erigontech/erigon-lib/gointerfaces/sentinelproto"
"github.com/erigontech/erigon-lib/log/v3"
"github.com/erigontech/erigon/cl/cltypes"
Expand All @@ -39,6 +38,7 @@ import (
"github.com/erigontech/erigon/cl/sentinel"
"github.com/erigontech/erigon/cl/utils/eth_clock"
"github.com/erigontech/erigon/db/kv"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p/enode"
"github.com/erigontech/erigon/turbo/snapshotsync/freezeblocks"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/observer/observer/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/crypto"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon/db/version"
"github.com/erigontech/erigon/execution/rlp"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p"
"github.com/erigontech/erigon/p2p/forkid"
"github.com/erigontech/erigon/p2p/protocols/eth"
Expand Down
2 changes: 1 addition & 1 deletion cmd/observer/observer/handshake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/stretchr/testify/require"

"github.com/erigontech/erigon-lib/crypto"
"github.com/erigontech/erigon-lib/direct"
chainspec "github.com/erigontech/erigon/execution/chain/spec"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p/enode"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/common/hexutil"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/gointerfaces"
"github.com/erigontech/erigon-lib/gointerfaces/grpcutil"
remote "github.com/erigontech/erigon-lib/gointerfaces/remoteproto"
Expand Down Expand Up @@ -75,6 +74,7 @@ import (
"github.com/erigontech/erigon/execution/consensus/merge"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/node/nodecfg"
"github.com/erigontech/erigon/node/paths"
"github.com/erigontech/erigon/polygon/bor"
Expand Down
2 changes: 1 addition & 1 deletion cmd/txpool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/spf13/cobra"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/gointerfaces"
"github.com/erigontech/erigon-lib/gointerfaces/grpcutil"
remote "github.com/erigontech/erigon-lib/gointerfaces/remoteproto"
Expand All @@ -39,6 +38,7 @@ import (
"github.com/erigontech/erigon/db/kv/kvcache"
"github.com/erigontech/erigon/db/kv/remotedb"
"github.com/erigontech/erigon/db/kv/remotedbserver"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/node/paths"
"github.com/erigontech/erigon/turbo/debug"
"github.com/erigontech/erigon/turbo/logging"
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
"github.com/erigontech/erigon-lib/common/metrics"
"github.com/erigontech/erigon-lib/crypto"
libkzg "github.com/erigontech/erigon-lib/crypto/kzg"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/log/v3"
"github.com/erigontech/erigon/cl/clparams"
"github.com/erigontech/erigon/cmd/downloader/downloadernat"
Expand All @@ -61,6 +60,7 @@ import (
chainspec "github.com/erigontech/erigon/execution/chain/spec"
"github.com/erigontech/erigon/execution/consensus/ethash/ethashcfg"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/node/nodecfg"
"github.com/erigontech/erigon/node/paths"
"github.com/erigontech/erigon/p2p"
Expand Down
4 changes: 2 additions & 2 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import (
"github.com/erigontech/erigon-lib/common/dir"
"github.com/erigontech/erigon-lib/common/disk"
"github.com/erigontech/erigon-lib/crypto"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/event"
protodownloader "github.com/erigontech/erigon-lib/gointerfaces/downloaderproto"
"github.com/erigontech/erigon-lib/gointerfaces/grpcutil"
Expand All @@ -61,7 +60,6 @@ import (
"github.com/erigontech/erigon-lib/gointerfaces/txpoolproto"
prototypes "github.com/erigontech/erigon-lib/gointerfaces/typesproto"
"github.com/erigontech/erigon-lib/log/v3"
libsentry "github.com/erigontech/erigon-lib/p2p/sentry"
"github.com/erigontech/erigon/cl/clparams"
"github.com/erigontech/erigon/cl/persistence/format/snapshot_format/getters"
executionclient "github.com/erigontech/erigon/cl/phase1/execution_client"
Expand Down Expand Up @@ -111,11 +109,13 @@ import (
stages2 "github.com/erigontech/erigon/execution/stages"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/node/nodecfg"
"github.com/erigontech/erigon/p2p"
"github.com/erigontech/erigon/p2p/enode"
"github.com/erigontech/erigon/p2p/protocols/eth"
"github.com/erigontech/erigon/p2p/sentry"
"github.com/erigontech/erigon/p2p/sentry/libsentry"
"github.com/erigontech/erigon/p2p/sentry/sentry_multi_client"
"github.com/erigontech/erigon/polygon/bor"
"github.com/erigontech/erigon/polygon/bor/borcfg"
Expand Down
4 changes: 2 additions & 2 deletions execution/bbd/backward_block_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ import (
"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
"github.com/erigontech/erigon-lib/log/v3"
"github.com/erigontech/erigon-lib/p2p/sentry"
"github.com/erigontech/erigon/db/etl"
"github.com/erigontech/erigon/db/kv/dbutils"
"github.com/erigontech/erigon/execution/rlp"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/p2p/protocols/eth"
"github.com/erigontech/erigon/p2p/sentry/libsentry"
"github.com/erigontech/erigon/polygon/p2p"
)

Expand All @@ -53,7 +53,7 @@ type BackwardBlockDownloader struct {
func NewBackwardBlockDownloader(
logger log.Logger,
sentryClient sentryproto.SentryClient,
statusDataFactory sentry.StatusDataFactory,
statusDataFactory libsentry.StatusDataFactory,
headerReader HeaderReader,
tmpDir string,
) *BackwardBlockDownloader {
Expand Down
2 changes: 1 addition & 1 deletion execution/engineapi/engine_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/common/hexutil"
"github.com/erigontech/erigon-lib/direct"
sentry "github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
txpool "github.com/erigontech/erigon-lib/gointerfaces/txpoolproto"
"github.com/erigontech/erigon-lib/log/v3"
Expand All @@ -41,6 +40,7 @@ import (
"github.com/erigontech/erigon/execution/stages"
"github.com/erigontech/erigon/execution/stages/mock"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p/protocols/eth"
"github.com/erigontech/erigon/rpc/jsonrpc"
"github.com/erigontech/erigon/rpc/rpccfg"
Expand Down
2 changes: 1 addition & 1 deletion execution/stages/mock/mock_sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/crypto"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/gointerfaces"
proto_downloader "github.com/erigontech/erigon-lib/gointerfaces/downloaderproto"
execution "github.com/erigontech/erigon-lib/gointerfaces/executionproto"
Expand Down Expand Up @@ -76,6 +75,7 @@ import (
"github.com/erigontech/erigon/execution/stages/bodydownload"
"github.com/erigontech/erigon/execution/stages/headerdownload"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p"
"github.com/erigontech/erigon/p2p/protocols/eth"
"github.com/erigontech/erigon/p2p/sentry"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
types "github.com/erigontech/erigon-lib/gointerfaces/typesproto"
libsentry "github.com/erigontech/erigon-lib/p2p/sentry"
"github.com/erigontech/erigon/p2p/sentry/libsentry"
)

const (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion node/nodecfg/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package nodecfg

import (
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p"
"github.com/erigontech/erigon/p2p/nat"
"github.com/erigontech/erigon/rpc/rpccfg"
Expand Down
2 changes: 1 addition & 1 deletion p2p/protocols/eth/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
"math/big"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/direct"
proto_sentry "github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
"github.com/erigontech/erigon/execution/rlp"
"github.com/erigontech/erigon/execution/types"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p/forkid"
)

Expand Down
2 changes: 1 addition & 1 deletion p2p/protocols/wit/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/direct"
proto_sentry "github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
"github.com/erigontech/erigon/core/stateless"
"github.com/erigontech/erigon/node/direct"
)

var ProtocolToString = map[uint]string{
Expand Down
2 changes: 1 addition & 1 deletion p2p/sentry/eth_handshake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"github.com/stretchr/testify/assert"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/direct"
"github.com/erigontech/erigon-lib/gointerfaces"
proto_sentry "github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
chainspec "github.com/erigontech/erigon/execution/chain/spec"
"github.com/erigontech/erigon/node/direct"
"github.com/erigontech/erigon/p2p/forkid"
"github.com/erigontech/erigon/p2p/protocols/eth"
)
Expand Down
18 changes: 17 additions & 1 deletion erigon-lib/p2p/sentry/loop.go → p2p/sentry/libsentry/loop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
package sentry
// Copyright 2024 The Erigon Authors
// This file is part of Erigon.
//
// Erigon is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Erigon is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

package libsentry

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
package sentry
// Copyright 2024 The Erigon Authors
// This file is part of Erigon.
//
// Erigon is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Erigon is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

package libsentry

import (
"github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
package sentry
// Copyright 2024 The Erigon Authors
// This file is part of Erigon.
//
// Erigon is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Erigon is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

package libsentry

import (
"context"
Expand Down
21 changes: 19 additions & 2 deletions erigon-lib/p2p/sentry/util.go → p2p/sentry/libsentry/util.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
package sentry
// Copyright 2024 The Erigon Authors
// This file is part of Erigon.
//
// Erigon is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Erigon is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

package libsentry

import (
"context"
"strconv"
"strings"

"google.golang.org/protobuf/types/known/emptypb"

"github.com/erigontech/erigon-lib/gointerfaces/sentryproto"
"github.com/erigontech/erigon-lib/gointerfaces/typesproto"
"google.golang.org/protobuf/types/known/emptypb"
)

func PeerProtocols(sentry sentryproto.SentryClient, peer *typesproto.H512) []byte {
Expand Down
Loading
Loading