mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-21 19:20:39 +00:00
bor: move to polygon directory (#9174)
This commit is contained in:
parent
af913fdeeb
commit
9c47cce62c
@ -12,9 +12,9 @@ import (
|
||||
account_services "github.com/ledgerwatch/erigon/cmd/devnet/services/accounts"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/services/polygon"
|
||||
"github.com/ledgerwatch/erigon/cmd/utils"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
)
|
||||
|
||||
func NewBorDevnetWithoutHeimdall(
|
||||
|
@ -10,6 +10,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain/networkname"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/common/hexutility"
|
||||
@ -19,7 +21,6 @@ import (
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/contracts"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/devnet"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/requests"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/crypto"
|
||||
)
|
||||
|
@ -10,6 +10,11 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/heimdallgrpc"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
ethereum "github.com/ledgerwatch/erigon"
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
@ -18,12 +23,8 @@ import (
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/blocks"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/contracts"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/devnet"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdallgrpc"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
type BridgeEvent string
|
||||
|
@ -11,6 +11,11 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/holiman/uint256"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/pion/randutil"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
@ -21,10 +26,6 @@ import (
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/blocks"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/requests"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/state"
|
||||
@ -32,14 +33,15 @@ import (
|
||||
"github.com/ledgerwatch/erigon/core/vm"
|
||||
"github.com/ledgerwatch/erigon/crypto"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/jsonrpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/erigon/turbo/stages/mock"
|
||||
"github.com/ledgerwatch/erigon/turbo/transactions"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/pion/randutil"
|
||||
)
|
||||
|
||||
type requestGenerator struct {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon/accounts/abi/bind"
|
||||
"github.com/ledgerwatch/erigon/cmd/devnet/contracts"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
)
|
||||
|
||||
// Maximum allowed event record data size
|
||||
|
@ -18,12 +18,13 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"golang.org/x/exp/slices"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdallgrpc"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/heimdallgrpc"
|
||||
|
||||
"github.com/ledgerwatch/erigon/core/rawdb/blockio"
|
||||
"github.com/ledgerwatch/erigon/node/nodecfg"
|
||||
"github.com/ledgerwatch/erigon/p2p/sentry/sentry_multi_client"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/turbo/builder"
|
||||
"github.com/ledgerwatch/erigon/turbo/snapshotsync/freezeblocks"
|
||||
|
||||
|
@ -13,6 +13,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/chain/snapcfg"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
@ -23,15 +25,14 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/kv/rawdbv3"
|
||||
libstate "github.com/ledgerwatch/erigon-lib/state"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/ethash"
|
||||
"github.com/ledgerwatch/erigon/core/state/temporal"
|
||||
"github.com/ledgerwatch/erigon/core/systemcontracts"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/rpc/rpccfg"
|
||||
"github.com/ledgerwatch/erigon/turbo/debug"
|
||||
"github.com/ledgerwatch/erigon/turbo/logging"
|
||||
|
@ -22,7 +22,7 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/common/math"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
|
@ -19,7 +19,7 @@ package rawdb
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/chain/networkname"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/common/hexutility"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/core/systemcontracts"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
|
@ -79,10 +79,6 @@ import (
|
||||
"github.com/ledgerwatch/erigon/cmd/rpcdaemon/cli"
|
||||
"github.com/ledgerwatch/erigon/common/debug"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdallgrpc"
|
||||
"github.com/ledgerwatch/erigon/consensus/clique"
|
||||
"github.com/ledgerwatch/erigon/consensus/ethash"
|
||||
"github.com/ledgerwatch/erigon/consensus/merge"
|
||||
@ -110,6 +106,10 @@ import (
|
||||
"github.com/ledgerwatch/erigon/p2p/sentry"
|
||||
"github.com/ledgerwatch/erigon/p2p/sentry/sentry_multi_client"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/heimdallgrpc"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/builder"
|
||||
"github.com/ledgerwatch/erigon/turbo/engineapi"
|
||||
|
@ -8,15 +8,14 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/aura"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/clique"
|
||||
"github.com/ledgerwatch/erigon/consensus/ethash"
|
||||
"github.com/ledgerwatch/erigon/consensus/ethash/ethashcfg"
|
||||
@ -24,6 +23,8 @@ import (
|
||||
"github.com/ledgerwatch/erigon/node"
|
||||
"github.com/ledgerwatch/erigon/node/nodecfg"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
)
|
||||
|
||||
|
@ -14,9 +14,9 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
)
|
||||
|
@ -19,18 +19,18 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/accounts/abi"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/dataflow"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig/estimate"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/erigon/turbo/stages/headerdownload"
|
||||
)
|
||||
|
@ -11,14 +11,14 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/crypto"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stagedsynctest"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
func TestBorHeimdallForwardPersistsSpans(t *testing.T) {
|
||||
|
@ -7,10 +7,10 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/dataflow"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
)
|
||||
|
||||
func MiningBorHeimdallForward(
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/common/hexutility"
|
||||
"github.com/ledgerwatch/erigon-lib/etl"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
|
@ -2,8 +2,8 @@ package stagedsynctest
|
||||
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
)
|
||||
|
||||
func BorDevnetChainConfigWithNoBlockSealDelays() *chain.Config {
|
||||
|
@ -7,29 +7,26 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"math/big"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/holiman/uint256"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
heimdallmock "github.com/ledgerwatch/erigon/polygon/heimdall/mock"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon-lib/kv/memdb"
|
||||
"github.com/ledgerwatch/erigon-lib/wrap"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
heimdallmock "github.com/ledgerwatch/erigon/consensus/bor/heimdall/mock"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
bormock "github.com/ledgerwatch/erigon/consensus/bor/mock"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
consensusmock "github.com/ledgerwatch/erigon/consensus/mock"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
@ -38,6 +35,11 @@ import (
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
bormock "github.com/ledgerwatch/erigon/polygon/bor/mock"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/erigon/turbo/stages/mock"
|
||||
"github.com/ledgerwatch/erigon/turbo/testlog"
|
||||
|
@ -26,7 +26,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/chain/networkname"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/common/paths"
|
||||
)
|
||||
|
@ -22,20 +22,15 @@ import (
|
||||
"golang.org/x/crypto/sha3"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/common/length"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/common"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/statefull"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/consensus/misc"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/state"
|
||||
@ -45,6 +40,12 @@ import (
|
||||
"github.com/ledgerwatch/erigon/crypto/cryptopool"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig/estimate"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/statefull"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
@ -4,32 +4,35 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/gointerfaces/sentry"
|
||||
"github.com/ledgerwatch/erigon-lib/kv/memdb"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/crypto"
|
||||
"github.com/ledgerwatch/erigon/eth/protocols/eth"
|
||||
"github.com/ledgerwatch/erigon/ethdb/prune"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/contract"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/turbo/stages/mock"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
)
|
||||
|
||||
type test_heimdall struct {
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
)
|
||||
|
||||
type MaxCheckpointLengthExceededError struct {
|
@ -3,9 +3,9 @@ package finality
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
)
|
||||
|
||||
func GetFinalizedBlockNumber(tx kv.Tx) uint64 {
|
@ -9,9 +9,9 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/metrics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
)
|
||||
|
||||
var (
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/generics"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
)
|
||||
|
@ -6,12 +6,14 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
)
|
||||
|
||||
type config struct {
|
@ -3,8 +3,8 @@ package whitelist
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/metrics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/rawdb"
|
||||
)
|
||||
|
||||
type checkpoint struct {
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
)
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/metrics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/rawdb"
|
||||
)
|
||||
|
||||
type milestone struct {
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/rawdb"
|
||||
)
|
||||
|
||||
var (
|
@ -12,8 +12,8 @@ import (
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon-lib/kv/memdb"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/rawdb"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"pgregory.net/rapid"
|
@ -4,10 +4,12 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
)
|
||||
|
||||
var (
|
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/ledgerwatch/erigon/consensus/bor (interfaces: GenesisContract)
|
||||
// Source: github.com/ledgerwatch/erigon/polygon/bor (interfaces: GenesisContract)
|
||||
|
||||
// Package mock is a generated GoMock package.
|
||||
package mock
|
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/ledgerwatch/erigon/consensus/bor (interfaces: Spanner)
|
||||
// Source: github.com/ledgerwatch/erigon/polygon/bor (interfaces: Spanner)
|
||||
|
||||
// Package mock is a generated GoMock package.
|
||||
package mock
|
||||
@ -10,8 +10,8 @@ import (
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
common "github.com/ledgerwatch/erigon-lib/common"
|
||||
consensus "github.com/ledgerwatch/erigon/consensus"
|
||||
span "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
valset "github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
span "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
valset "github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
// MockSpanner is a mock of Spanner interface.
|
@ -10,9 +10,9 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
// Snapshot is the state of the authorization voting at a given point in time.
|
@ -6,8 +6,8 @@ import (
|
||||
"testing"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/maticnetwork/crand"
|
||||
"github.com/stretchr/testify/require"
|
@ -1,10 +1,11 @@
|
||||
package bor
|
||||
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
//go:generate mockgen -destination=./mock/spanner_mock.go -package=mock . Spanner
|
@ -15,11 +15,12 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/metrics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
)
|
||||
|
||||
var (
|
@ -11,7 +11,8 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/mock"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/mock"
|
||||
|
||||
"github.com/ledgerwatch/erigon/turbo/testlog"
|
||||
)
|
||||
|
@ -3,11 +3,12 @@ package heimdall
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/generics"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/generics"
|
||||
)
|
||||
|
||||
func MilestoneRewindPending() bool {
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"math/big"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
|
||||
proto "github.com/maticnetwork/polyproto/heimdall"
|
||||
protoutils "github.com/maticnetwork/polyproto/utils"
|
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
|
||||
proto "github.com/maticnetwork/polyproto/heimdall"
|
||||
protoutils "github.com/maticnetwork/polyproto/utils"
|
@ -6,8 +6,6 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/gointerfaces"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
proto "github.com/maticnetwork/polyproto/heimdall"
|
||||
"google.golang.org/grpc"
|
||||
@ -15,6 +13,10 @@ import (
|
||||
"google.golang.org/grpc/status"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/gointerfaces"
|
||||
)
|
||||
|
||||
type HeimdallGRPCServer struct {
|
@ -3,8 +3,9 @@ package heimdallgrpc
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
|
||||
proto "github.com/maticnetwork/polyproto/heimdall"
|
||||
protoutils "github.com/maticnetwork/polyproto/utils"
|
@ -6,7 +6,7 @@ import (
|
||||
"io"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
proto "github.com/maticnetwork/polyproto/heimdall"
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/ledgerwatch/erigon/consensus/bor/heimdall (interfaces: IHeimdallClient)
|
||||
// Source: github.com/ledgerwatch/erigon/polygon/heimdall (interfaces: IHeimdallClient)
|
||||
|
||||
// Package mock is a generated GoMock package.
|
||||
package mock
|
||||
@ -9,10 +9,10 @@ import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
clerk "github.com/ledgerwatch/erigon/consensus/bor/clerk"
|
||||
checkpoint "github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
milestone "github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
span "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
clerk "github.com/ledgerwatch/erigon/polygon/bor/clerk"
|
||||
checkpoint "github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
milestone "github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
span "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
)
|
||||
|
||||
// MockIHeimdallClient is a mock of IHeimdallClient interface.
|
@ -1,5 +1,5 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/ledgerwatch/erigon/consensus/bor/heimdall (interfaces: HttpClient)
|
||||
// Source: github.com/ledgerwatch/erigon/polygon/heimdall (interfaces: HttpClient)
|
||||
|
||||
// Package mock is a generated GoMock package.
|
||||
package mock
|
@ -2,7 +2,7 @@ package span
|
||||
|
||||
import (
|
||||
"github.com/google/btree"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
// Span represents a current bor span
|
@ -1,7 +1,7 @@
|
||||
package span
|
||||
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
)
|
||||
|
||||
const (
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
)
|
||||
|
||||
func TestSpanIDAt(t *testing.T) {
|
@ -10,9 +10,9 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/abi"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/abi"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package span
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon-lib/chain/networkname"
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
// NetworkNameVals is a map of network name to validator set for tests/devnets
|
@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
)
|
||||
|
||||
//go:generate mockgen -destination=./mock/canonical_chain_builder_mock.go -package=mock . CanonicalChainBuilder
|
||||
|
@ -9,7 +9,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
heimdallspan "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
heimdallspan "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
)
|
||||
|
||||
|
@ -6,12 +6,13 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync"
|
||||
|
||||
heimdallspan "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
heimdallspan "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
type DifficultyCalculator interface {
|
||||
|
@ -8,10 +8,11 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
heimdallspan "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
heimdallspan "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
)
|
||||
|
||||
type testValidatorSetInterface struct {
|
||||
|
@ -12,9 +12,10 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/sync/mock"
|
||||
"github.com/ledgerwatch/erigon/polygon/sync/peerinfo"
|
||||
|
@ -8,11 +8,12 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
)
|
||||
|
||||
// Heimdall is a wrapper of Heimdall HTTP API
|
||||
|
@ -11,10 +11,10 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
heimdallclient "github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
heimdallmock "github.com/ledgerwatch/erigon/consensus/bor/heimdall/mock"
|
||||
heimdallclient "github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
heimdallmock "github.com/ledgerwatch/erigon/polygon/heimdall/mock"
|
||||
)
|
||||
|
||||
func makeCheckpoint(start uint64, len uint) *checkpoint.Checkpoint {
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
checkpoint "github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
milestone "github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
span "github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
checkpoint "github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
milestone "github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
span "github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
)
|
||||
|
||||
// MockHeimdall is a mock of Heimdall interface.
|
||||
|
@ -3,9 +3,10 @@ package sync
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
)
|
||||
|
||||
func statePointFromCheckpoint(checkpoint *checkpoint.Checkpoint) *statePoint {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package sync
|
||||
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/milestone"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/checkpoint"
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/milestone"
|
||||
)
|
||||
|
||||
func statePointsFromCheckpoints(checkpoints []*checkpoint.Checkpoint) statePoints {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"crypto/ecdsa"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"math/big"
|
||||
"os"
|
||||
"time"
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
)
|
||||
|
||||
|
@ -9,12 +9,12 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/crypto"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/rpchelper"
|
||||
)
|
||||
|
@ -10,14 +10,14 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
)
|
||||
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
libstate "github.com/ledgerwatch/erigon-lib/state"
|
||||
"github.com/ledgerwatch/erigon/cmd/rpcdaemon/cli/httpcfg"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/clique"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/rpchelper"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
|
||||
borfinality "github.com/ledgerwatch/erigon/consensus/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/core/forkid"
|
||||
borfinality "github.com/ledgerwatch/erigon/polygon/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
"github.com/ledgerwatch/erigon/turbo/rpchelper"
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common/hexutil"
|
||||
"github.com/ledgerwatch/erigon/cl/clparams"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/valset"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/valset"
|
||||
)
|
||||
|
||||
// MaxTotalVotingPower - the maximum allowed total voting power.
|
||||
|
@ -9,13 +9,13 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon-lib/kv/kvcache"
|
||||
"github.com/ledgerwatch/erigon-lib/kv/rawdbv3"
|
||||
borfinality "github.com/ledgerwatch/erigon/consensus/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/state"
|
||||
"github.com/ledgerwatch/erigon/core/systemcontracts"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
borfinality "github.com/ledgerwatch/erigon/polygon/bor/finality"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/whitelist"
|
||||
"github.com/ledgerwatch/erigon/rpc"
|
||||
)
|
||||
|
||||
|
@ -8,6 +8,10 @@ import (
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/common"
|
||||
"github.com/ledgerwatch/erigon-lib/common/dbg"
|
||||
"github.com/ledgerwatch/erigon-lib/common/length"
|
||||
@ -15,13 +19,11 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/gointerfaces/remote"
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon-lib/recsplit"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
)
|
||||
|
||||
type RemoteBlockReader struct {
|
||||
|
@ -21,6 +21,8 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/chain/snapcfg"
|
||||
common2 "github.com/ledgerwatch/erigon-lib/common"
|
||||
@ -38,7 +40,6 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/recsplit"
|
||||
types2 "github.com/ledgerwatch/erigon-lib/types"
|
||||
"github.com/ledgerwatch/erigon/cmd/hack/tool/fromdb"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb/blockio"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
|
@ -17,6 +17,8 @@ import (
|
||||
"github.com/ledgerwatch/log/v3"
|
||||
"golang.org/x/exp/slices"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall/span"
|
||||
|
||||
"github.com/ledgerwatch/erigon-lib/chain"
|
||||
"github.com/ledgerwatch/erigon-lib/chain/snapcfg"
|
||||
common2 "github.com/ledgerwatch/erigon-lib/common"
|
||||
@ -30,7 +32,6 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/kv"
|
||||
"github.com/ledgerwatch/erigon-lib/recsplit"
|
||||
"github.com/ledgerwatch/erigon/cmd/hack/tool/fromdb"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall/span"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package freezeblocks_test
|
||||
|
||||
import (
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/borcfg"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/borcfg"
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
|
@ -35,7 +35,6 @@ import (
|
||||
types2 "github.com/ledgerwatch/erigon-lib/types"
|
||||
"github.com/ledgerwatch/erigon-lib/wrap"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/ethash"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
@ -54,6 +53,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon/p2p"
|
||||
"github.com/ledgerwatch/erigon/p2p/sentry/sentry_multi_client"
|
||||
"github.com/ledgerwatch/erigon/params"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/rlp"
|
||||
"github.com/ledgerwatch/erigon/turbo/builder"
|
||||
"github.com/ledgerwatch/erigon/turbo/engineapi/engine_helpers"
|
||||
|
@ -21,10 +21,9 @@ import (
|
||||
"github.com/ledgerwatch/erigon-lib/state"
|
||||
"github.com/ledgerwatch/erigon-lib/wrap"
|
||||
|
||||
"github.com/ledgerwatch/erigon/polygon/heimdall"
|
||||
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/heimdall"
|
||||
"github.com/ledgerwatch/erigon/consensus/misc"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb"
|
||||
"github.com/ledgerwatch/erigon/core/rawdb/blockio"
|
||||
@ -35,6 +34,8 @@ import (
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync/stages"
|
||||
"github.com/ledgerwatch/erigon/p2p"
|
||||
"github.com/ledgerwatch/erigon/p2p/sentry/sentry_multi_client"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/finality/flags"
|
||||
"github.com/ledgerwatch/erigon/turbo/engineapi/engine_helpers"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
"github.com/ledgerwatch/erigon/turbo/shards"
|
||||
|
@ -17,7 +17,6 @@ import (
|
||||
|
||||
ethereum "github.com/ledgerwatch/erigon"
|
||||
"github.com/ledgerwatch/erigon/consensus"
|
||||
"github.com/ledgerwatch/erigon/consensus/bor/statefull"
|
||||
"github.com/ledgerwatch/erigon/core"
|
||||
"github.com/ledgerwatch/erigon/core/state"
|
||||
"github.com/ledgerwatch/erigon/core/types"
|
||||
@ -26,6 +25,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon/eth/stagedsync"
|
||||
"github.com/ledgerwatch/erigon/eth/tracers"
|
||||
"github.com/ledgerwatch/erigon/eth/tracers/logger"
|
||||
"github.com/ledgerwatch/erigon/polygon/bor/statefull"
|
||||
"github.com/ledgerwatch/erigon/turbo/rpchelper"
|
||||
"github.com/ledgerwatch/erigon/turbo/services"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user