Fix import fmt and run tests for given architecture (#18)

* fix gofmt

* Run tests for given architecture

* Speed up CI execution.
This commit is contained in:
maskpp 2022-01-13 11:45:06 +08:00 committed by GitHub
parent 20ce5c09fb
commit b4d60884d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 90 additions and 85 deletions

View file

@ -29,7 +29,7 @@ ios:
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library." @echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
test: all test: all
$(GORUN) build/ci.go test $(GORUN) build/ci.go test ./consensus ./core ./eth ./miner ./node ./trie
lint: ## Run linters. lint: ## Run linters.
$(GORUN) build/ci.go lint $(GORUN) build/ci.go lint

View file

@ -29,10 +29,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/google/uuid"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
) )
const ( const (

View file

@ -38,11 +38,11 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/google/uuid"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/math" "github.com/scroll-tech/go-ethereum/common/math"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt" "golang.org/x/crypto/scrypt"
) )

View file

@ -25,9 +25,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/google/uuid"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
) )

View file

@ -22,8 +22,8 @@ package keystore
import ( import (
"time" "time"
"github.com/scroll-tech/go-ethereum/log"
"github.com/rjeczalik/notify" "github.com/rjeczalik/notify"
"github.com/scroll-tech/go-ethereum/log"
) )
type watcher struct { type watcher struct {

View file

@ -41,11 +41,11 @@ import (
"sync" "sync"
"time" "time"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/event" "github.com/scroll-tech/go-ethereum/event"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
pcsc "github.com/gballet/go-libpcsclite"
) )
// Scheme is the URI prefix for smartcard wallets. // Scheme is the URI prefix for smartcard wallets.

View file

@ -26,8 +26,8 @@ import (
"crypto/sha512" "crypto/sha512"
"fmt" "fmt"
"github.com/scroll-tech/go-ethereum/crypto"
pcsc "github.com/gballet/go-libpcsclite" pcsc "github.com/gballet/go-libpcsclite"
"github.com/scroll-tech/go-ethereum/crypto"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
"golang.org/x/text/unicode/norm" "golang.org/x/text/unicode/norm"
) )

View file

@ -33,13 +33,13 @@ import (
"sync" "sync"
"time" "time"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/scroll-tech/go-ethereum" "github.com/scroll-tech/go-ethereum"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/status-im/keycard-go/derivationpath" "github.com/status-im/keycard-go/derivationpath"
) )

View file

@ -23,10 +23,10 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/karalabe/usb"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/event" "github.com/scroll-tech/go-ethereum/event"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/karalabe/usb"
) )
// LedgerScheme is the protocol scheme prefixing account and wallet URLs. // LedgerScheme is the protocol scheme prefixing account and wallet URLs.

View file

@ -27,13 +27,13 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/golang/protobuf/proto"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/accounts/usbwallet/trezor" "github.com/scroll-tech/go-ethereum/accounts/usbwallet/trezor"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common/hexutil"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/golang/protobuf/proto"
) )
// ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In // ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In

View file

@ -25,13 +25,13 @@ import (
"sync" "sync"
"time" "time"
"github.com/karalabe/usb"
"github.com/scroll-tech/go-ethereum" "github.com/scroll-tech/go-ethereum"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/karalabe/usb"
) )
// Maximum time between wallet health checks to detect USB unplugs. // Maximum time between wallet health checks to detect USB unplugs.

View file

@ -219,7 +219,7 @@ func doInstall(cmdline []string) {
// better disable it. This check isn't the best, it should probably // better disable it. This check isn't the best, it should probably
// check for something in env instead. // check for something in env instead.
if env.CI && runtime.GOARCH == "arm64" { if env.CI && runtime.GOARCH == "arm64" {
gobuild.Args = append(gobuild.Args, "-p", "1") gobuild.Args = append(gobuild.Args, "-p", strconv.Itoa(runtime.NumCPU()))
} }
// We use -trimpath to avoid leaking local paths into the built executables. // We use -trimpath to avoid leaking local paths into the built executables.
@ -293,7 +293,7 @@ func doTest(cmdline []string) {
// Test a single package at a time. CI builders are slow // Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load. // and some tests run into timeouts under load.
gotest.Args = append(gotest.Args, "-p", "1") gotest.Args = append(gotest.Args, "-p", strconv.Itoa(runtime.NumCPU()))
if *coverage { if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover") gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
} }

View file

@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build none
// +build none // +build none
/* /*

View file

@ -35,6 +35,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/accounts/keystore" "github.com/scroll-tech/go-ethereum/accounts/keystore"
"github.com/scroll-tech/go-ethereum/cmd/utils" "github.com/scroll-tech/go-ethereum/cmd/utils"
@ -54,8 +56,6 @@ import (
"github.com/scroll-tech/go-ethereum/signer/fourbyte" "github.com/scroll-tech/go-ethereum/signer/fourbyte"
"github.com/scroll-tech/go-ethereum/signer/rules" "github.com/scroll-tech/go-ethereum/signer/rules"
"github.com/scroll-tech/go-ethereum/signer/storage" "github.com/scroll-tech/go-ethereum/signer/storage"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -23,10 +23,10 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/google/uuid"
"github.com/scroll-tech/go-ethereum/accounts/keystore" "github.com/scroll-tech/go-ethereum/accounts/keystore"
"github.com/scroll-tech/go-ethereum/cmd/utils" "github.com/scroll-tech/go-ethereum/cmd/utils"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -41,6 +41,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/accounts/keystore" "github.com/scroll-tech/go-ethereum/accounts/keystore"
"github.com/scroll-tech/go-ethereum/cmd/utils" "github.com/scroll-tech/go-ethereum/cmd/utils"
@ -58,7 +59,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/nat" "github.com/scroll-tech/go-ethereum/p2p/nat"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/gorilla/websocket"
) )
var ( var (

View file

@ -27,6 +27,7 @@ import (
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
"github.com/naoina/toml"
"github.com/scroll-tech/go-ethereum/accounts/external" "github.com/scroll-tech/go-ethereum/accounts/external"
"github.com/scroll-tech/go-ethereum/accounts/keystore" "github.com/scroll-tech/go-ethereum/accounts/keystore"
"github.com/scroll-tech/go-ethereum/accounts/scwallet" "github.com/scroll-tech/go-ethereum/accounts/scwallet"
@ -39,7 +40,6 @@ import (
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/naoina/toml"
) )
var ( var (

View file

@ -25,8 +25,8 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/scroll-tech/go-ethereum/log"
"github.com/jedisct1/go-minisign" "github.com/jedisct1/go-minisign"
"github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -30,11 +30,11 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/peterh/liner"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/console/prompt" "github.com/scroll-tech/go-ethereum/console/prompt"
"github.com/scroll-tech/go-ethereum/core" "github.com/scroll-tech/go-ethereum/core"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/peterh/liner"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View file

@ -23,9 +23,9 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/olekukonko/tablewriter"
"github.com/scroll-tech/go-ethereum/core" "github.com/scroll-tech/go-ethereum/core"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/olekukonko/tablewriter"
) )
// networkStats verifies the status of network components and generates a protip // networkStats verifies the status of network components and generates a protip

View file

@ -33,6 +33,7 @@ import (
"text/template" "text/template"
"time" "time"
pcsclite "github.com/gballet/go-libpcsclite"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/accounts/keystore" "github.com/scroll-tech/go-ethereum/accounts/keystore"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
@ -66,7 +67,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/nat" "github.com/scroll-tech/go-ethereum/p2p/nat"
"github.com/scroll-tech/go-ethereum/p2p/netutil" "github.com/scroll-tech/go-ethereum/p2p/netutil"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
pcsclite "github.com/gballet/go-libpcsclite"
gopsutil "github.com/shirou/gopsutil/mem" gopsutil "github.com/shirou/gopsutil/mem"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -27,6 +27,7 @@ import (
"sync" "sync"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common/hexutil"
@ -41,7 +42,6 @@ import (
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/scroll-tech/go-ethereum/trie" "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/crypto/sha3" "golang.org/x/crypto/sha3"
) )
@ -123,10 +123,6 @@ var (
// turn of the signer. // turn of the signer.
errWrongDifficulty = errors.New("wrong difficulty") errWrongDifficulty = errors.New("wrong difficulty")
// errInvalidTimestamp is returned if the timestamp of a block is lower than
// the previous block's timestamp + the minimum block period.
errInvalidTimestamp = errors.New("invalid timestamp")
// errInvalidVotingChain is returned if an authorization list is attempted to // errInvalidVotingChain is returned if an authorization list is attempted to
// be modified via out-of-range or non-contiguous headers. // be modified via out-of-range or non-contiguous headers.
errInvalidVotingChain = errors.New("invalid voting chain") errInvalidVotingChain = errors.New("invalid voting chain")

View file

@ -22,12 +22,12 @@ import (
"sort" "sort"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
lru "github.com/hashicorp/golang-lru"
) )
// Vote represents a single vote that an authorized signer made to modify the // Vote represents a single vote that an authorized signer made to modify the

View file

@ -19,8 +19,8 @@ package ethash
import ( import (
"math/big" "math/big"
"github.com/scroll-tech/go-ethereum/core/types"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/core/types"
) )
const ( const (

View file

@ -34,11 +34,11 @@ import (
"unsafe" "unsafe"
"github.com/edsrzf/mmap-go" "github.com/edsrzf/mmap-go"
"github.com/hashicorp/golang-lru/simplelru"
"github.com/scroll-tech/go-ethereum/consensus" "github.com/scroll-tech/go-ethereum/consensus"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/hashicorp/golang-lru/simplelru"
) )
var ErrInvalidDumpMagic = errors.New("invalid dump magic") var ErrInvalidDumpMagic = errors.New("invalid dump magic")

View file

@ -29,13 +29,13 @@ import (
"syscall" "syscall"
"github.com/dop251/goja" "github.com/dop251/goja"
"github.com/mattn/go-colorable"
"github.com/peterh/liner"
"github.com/scroll-tech/go-ethereum/console/prompt" "github.com/scroll-tech/go-ethereum/console/prompt"
"github.com/scroll-tech/go-ethereum/internal/jsre" "github.com/scroll-tech/go-ethereum/internal/jsre"
"github.com/scroll-tech/go-ethereum/internal/jsre/deps" "github.com/scroll-tech/go-ethereum/internal/jsre/deps"
"github.com/scroll-tech/go-ethereum/internal/web3ext" "github.com/scroll-tech/go-ethereum/internal/web3ext"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
"github.com/peterh/liner"
) )
var ( var (

View file

@ -28,6 +28,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/mclock" "github.com/scroll-tech/go-ethereum/common/mclock"
"github.com/scroll-tech/go-ethereum/common/prque" "github.com/scroll-tech/go-ethereum/common/prque"
@ -44,7 +45,6 @@ import (
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/scroll-tech/go-ethereum/trie" "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
) )
var ( var (

View file

@ -26,6 +26,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/consensus" "github.com/scroll-tech/go-ethereum/consensus"
"github.com/scroll-tech/go-ethereum/core/rawdb" "github.com/scroll-tech/go-ethereum/core/rawdb"
@ -33,7 +34,6 @@ import (
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
lru "github.com/hashicorp/golang-lru"
) )
const ( const (

View file

@ -24,12 +24,12 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/olekukonko/tablewriter"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/ethdb/leveldb" "github.com/scroll-tech/go-ethereum/ethdb/leveldb"
"github.com/scroll-tech/go-ethereum/ethdb/memorydb" "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/olekukonko/tablewriter"
) )
// freezerdb is a database wrapper that enabled freezer data retrievals. // freezerdb is a database wrapper that enabled freezer data retrievals.

View file

@ -26,12 +26,12 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/prometheus/tsdb/fileutil"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/prometheus/tsdb/fileutil"
) )
var ( var (

View file

@ -20,9 +20,9 @@ import (
"fmt" "fmt"
"sync/atomic" "sync/atomic"
"github.com/golang/snappy"
"github.com/scroll-tech/go-ethereum/common/math" "github.com/scroll-tech/go-ethereum/common/math"
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
"github.com/golang/snappy"
) )
// This is the maximum amount of data that will be buffered in memory // This is the maximum amount of data that will be buffered in memory

View file

@ -27,10 +27,10 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/golang/snappy"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/golang/snappy"
) )
var ( var (

View file

@ -21,12 +21,12 @@ import (
"fmt" "fmt"
"github.com/VictoriaMetrics/fastcache" "github.com/VictoriaMetrics/fastcache"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/rawdb" "github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/trie" "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
) )
const ( const (

View file

@ -21,10 +21,10 @@ import (
"errors" "errors"
"os" "os"
bloomfilter "github.com/holiman/bloomfilter/v2"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/rawdb" "github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
bloomfilter "github.com/holiman/bloomfilter/v2"
) )
// stateBloomHasher is a wrapper around a byte blob to satisfy the interface API // stateBloomHasher is a wrapper around a byte blob to satisfy the interface API

View file

@ -26,9 +26,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
bloomfilter "github.com/holiman/bloomfilter/v2"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
bloomfilter "github.com/holiman/bloomfilter/v2"
) )
var ( var (

View file

@ -17,9 +17,9 @@
package vm package vm
import ( import (
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/math" "github.com/scroll-tech/go-ethereum/common/math"
"github.com/holiman/uint256"
) )
// calcMemSize64 calculates the required memory size, and returns // calcMemSize64 calculates the required memory size, and returns

View file

@ -19,8 +19,8 @@ package vm
import ( import (
"math/big" "math/big"
"github.com/scroll-tech/go-ethereum/common"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common"
) )
// ContractRef is a reference to the contract's backing object // ContractRef is a reference to the contract's backing object

View file

@ -20,8 +20,8 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/params"
) )
var activators = map[int]func(*JumpTable){ var activators = map[int]func(*JumpTable){

View file

@ -21,10 +21,10 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
) )
// emptyCodeHash is used by create to ensure deployment is disallowed to already // emptyCodeHash is used by create to ensure deployment is disallowed to already

View file

@ -5,10 +5,10 @@ package vm
import ( import (
"encoding/json" "encoding/json"
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common/hexutil"
"github.com/scroll-tech/go-ethereum/common/math" "github.com/scroll-tech/go-ethereum/common/math"
"github.com/holiman/uint256"
) )
var _ = (*structLogMarshaling)(nil) var _ = (*structLogMarshaling)(nil)

View file

@ -17,10 +17,10 @@
package vm package vm
import ( import (
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
"golang.org/x/crypto/sha3" "golang.org/x/crypto/sha3"
) )

View file

@ -23,10 +23,10 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
) )
type TwoOperandTestcase struct { type TwoOperandTestcase struct {

View file

@ -24,12 +24,12 @@ import (
"strings" "strings"
"time" "time"
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common/hexutil"
"github.com/scroll-tech/go-ethereum/common/math" "github.com/scroll-tech/go-ethereum/common/math"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
) )
// Storage represents a contract's storage. // Storage represents a contract's storage.

View file

@ -20,10 +20,10 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/state" "github.com/scroll-tech/go-ethereum/core/state"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
) )
type dummyContractRef struct { type dummyContractRef struct {

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -1,3 +1,4 @@
//go:build dummy
// +build dummy // +build dummy
// Package c contains only a C file. // Package c contains only a C file.

View file

@ -22,6 +22,7 @@ import (
"sort" "sort"
"sync" "sync"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core" "github.com/scroll-tech/go-ethereum/core"
"github.com/scroll-tech/go-ethereum/core/types" "github.com/scroll-tech/go-ethereum/core/types"
@ -29,7 +30,6 @@ import (
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
lru "github.com/hashicorp/golang-lru"
) )
const sampleNumber = 3 // Number of transactions sampled in a block const sampleNumber = 3 // Number of transactions sampled in a block

View file

@ -19,8 +19,8 @@ package snap
import ( import (
"math/big" "math/big"
"github.com/scroll-tech/go-ethereum/common"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"github.com/scroll-tech/go-ethereum/common"
) )
// hashRange is a utility to handle ranges of hashes, Split up the // hashRange is a utility to handle ranges of hashes, Split up the

View file

@ -30,6 +30,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum" "github.com/scroll-tech/go-ethereum"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/mclock" "github.com/scroll-tech/go-ethereum/common/mclock"
@ -44,7 +45,6 @@ import (
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
"github.com/scroll-tech/go-ethereum/p2p" "github.com/scroll-tech/go-ethereum/p2p"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
) )
const ( const (

View file

@ -20,9 +20,9 @@ import (
"encoding/json" "encoding/json"
"net/http" "net/http"
"github.com/graph-gophers/graphql-go"
"github.com/scroll-tech/go-ethereum/internal/ethapi" "github.com/scroll-tech/go-ethereum/internal/ethapi"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
"github.com/graph-gophers/graphql-go"
) )
type handler struct { type handler struct {

View file

@ -35,8 +35,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/scroll-tech/go-ethereum/log"
"github.com/hashicorp/go-bexpr" "github.com/hashicorp/go-bexpr"
"github.com/scroll-tech/go-ethereum/log"
) )
// Handler is the global debugging handler. // Handler is the global debugging handler.

View file

@ -24,12 +24,12 @@ import (
"os" "os"
"runtime" "runtime"
"github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/metrics/exp"
"github.com/fjl/memsize/memsizeui" "github.com/fjl/memsize/memsizeui"
"github.com/mattn/go-colorable" "github.com/mattn/go-colorable"
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics"
"github.com/scroll-tech/go-ethereum/metrics/exp"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -28,6 +28,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/mattn/go-colorable"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/hexutil" "github.com/scroll-tech/go-ethereum/common/hexutil"
"github.com/scroll-tech/go-ethereum/consensus/ethash" "github.com/scroll-tech/go-ethereum/consensus/ethash"
@ -42,7 +43,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/simulations" "github.com/scroll-tech/go-ethereum/p2p/simulations"
"github.com/scroll-tech/go-ethereum/p2p/simulations/adapters" "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
) )
// Additional command line flags for the test binary. // Additional command line flags for the test binary.

View file

@ -21,6 +21,7 @@ import (
"encoding/binary" "encoding/binary"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/common/mclock" "github.com/scroll-tech/go-ethereum/common/mclock"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
@ -28,7 +29,6 @@ import (
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
lru "github.com/hashicorp/golang-lru"
) )
const ( const (

View file

@ -26,6 +26,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/consensus" "github.com/scroll-tech/go-ethereum/consensus"
"github.com/scroll-tech/go-ethereum/core" "github.com/scroll-tech/go-ethereum/core"
@ -37,7 +38,6 @@ import (
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/params" "github.com/scroll-tech/go-ethereum/params"
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
lru "github.com/hashicorp/golang-lru"
) )
var ( var (

View file

@ -5,9 +5,9 @@ import (
uurl "net/url" uurl "net/url"
"time" "time"
"github.com/influxdata/influxdb/client"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
"github.com/influxdata/influxdb/client"
) )
type reporter struct { type reporter struct {

View file

@ -13,10 +13,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics"
influxdb2 "github.com/influxdata/influxdb-client-go/v2" influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github.com/influxdata/influxdb-client-go/v2/api" "github.com/influxdata/influxdb-client-go/v2/api"
"github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics"
) )
type v2Reporter struct { type v2Reporter struct {

View file

@ -394,9 +394,9 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
commit(false, commitInterruptNewHead) commit(false, commitInterruptNewHead)
/*case head := <-w.chainHeadCh: /*case head := <-w.chainHeadCh:
clearPending(head.Block.NumberU64()) clearPending(head.Block.NumberU64())
timestamp = time.Now().Unix() timestamp = time.Now().Unix()
commit(false, commitInterruptNewHead)*/ commit(false, commitInterruptNewHead)*/
case <-timer.C: case <-timer.C:
// If mining is running resubmit a new work cycle periodically to pull in // If mining is running resubmit a new work cycle periodically to pull in

View file

@ -26,6 +26,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/prometheus/tsdb/fileutil"
"github.com/scroll-tech/go-ethereum/accounts" "github.com/scroll-tech/go-ethereum/accounts"
"github.com/scroll-tech/go-ethereum/core/rawdb" "github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
@ -33,7 +34,6 @@ import (
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/p2p" "github.com/scroll-tech/go-ethereum/p2p"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/prometheus/tsdb/fileutil"
) )
// Node is a container on which services can be registered. // Node is a container on which services can be registered.

View file

@ -29,9 +29,9 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/rs/cors"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/rs/cors"
) )
// httpConfig is the JSON-RPC/HTTP configuration. // httpConfig is the JSON-RPC/HTTP configuration.

View file

@ -25,10 +25,10 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/internal/testlog" "github.com/scroll-tech/go-ethereum/internal/testlog"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -22,10 +22,10 @@ import (
"encoding/binary" "encoding/binary"
"time" "time"
"github.com/hashicorp/golang-lru/simplelru"
"github.com/scroll-tech/go-ethereum/common/mclock" "github.com/scroll-tech/go-ethereum/common/mclock"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/hashicorp/golang-lru/simplelru"
) )
const handshakeTimeout = time.Second const handshakeTimeout = time.Second

View file

@ -26,12 +26,12 @@ import (
"sync" "sync"
"time" "time"
lru "github.com/hashicorp/golang-lru"
"github.com/scroll-tech/go-ethereum/common/mclock" "github.com/scroll-tech/go-ethereum/common/mclock"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/enr" "github.com/scroll-tech/go-ethereum/p2p/enr"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/sync/singleflight" "golang.org/x/sync/singleflight"
"golang.org/x/time/rate" "golang.org/x/time/rate"
) )

View file

@ -25,8 +25,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/scroll-tech/go-ethereum/log"
natpmp "github.com/jackpal/go-nat-pmp" natpmp "github.com/jackpal/go-nat-pmp"
"github.com/scroll-tech/go-ethereum/log"
) )
// An implementation of nat.Interface can map local ports to ports // An implementation of nat.Interface can map local ports to ports

View file

@ -34,10 +34,10 @@ import (
"net" "net"
"time" "time"
"github.com/golang/snappy"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/crypto/ecies" "github.com/scroll-tech/go-ethereum/crypto/ecies"
"github.com/scroll-tech/go-ethereum/rlp" "github.com/scroll-tech/go-ethereum/rlp"
"github.com/golang/snappy"
"golang.org/x/crypto/sha3" "golang.org/x/crypto/sha3"
) )

View file

@ -35,12 +35,12 @@ import (
"time" "time"
"github.com/docker/docker/pkg/reexec" "github.com/docker/docker/pkg/reexec"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
"github.com/scroll-tech/go-ethereum/p2p" "github.com/scroll-tech/go-ethereum/p2p"
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
) )
func init() { func init() {

View file

@ -24,6 +24,7 @@ import (
"net" "net"
"sync" "sync"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/event" "github.com/scroll-tech/go-ethereum/event"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
@ -31,7 +32,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/simulations/pipes" "github.com/scroll-tech/go-ethereum/p2p/simulations/pipes"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
) )
// SimAdapter is a NodeAdapter which creates in-memory simulation nodes and // SimAdapter is a NodeAdapter which creates in-memory simulation nodes and

View file

@ -26,6 +26,7 @@ import (
"strconv" "strconv"
"github.com/docker/docker/pkg/reexec" "github.com/docker/docker/pkg/reexec"
"github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/crypto" "github.com/scroll-tech/go-ethereum/crypto"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
@ -33,7 +34,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/enr" "github.com/scroll-tech/go-ethereum/p2p/enr"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
) )
// Node represents a node in a simulation network which is created by a // Node represents a node in a simulation network which is created by a

View file

@ -29,13 +29,13 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/gorilla/websocket"
"github.com/julienschmidt/httprouter"
"github.com/scroll-tech/go-ethereum/event" "github.com/scroll-tech/go-ethereum/event"
"github.com/scroll-tech/go-ethereum/p2p" "github.com/scroll-tech/go-ethereum/p2p"
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/simulations/adapters" "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
"github.com/julienschmidt/httprouter"
) )
// DefaultClient is the default simulation API client which expects the API // DefaultClient is the default simulation API client which expects the API

View file

@ -29,6 +29,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/mattn/go-colorable"
"github.com/scroll-tech/go-ethereum/event" "github.com/scroll-tech/go-ethereum/event"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/node" "github.com/scroll-tech/go-ethereum/node"
@ -36,7 +37,6 @@ import (
"github.com/scroll-tech/go-ethereum/p2p/enode" "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/scroll-tech/go-ethereum/p2p/simulations/adapters" "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
"github.com/scroll-tech/go-ethereum/rpc" "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {

View file

@ -28,8 +28,8 @@ import (
"time" "time"
mapset "github.com/deckarep/golang-set" mapset "github.com/deckarep/golang-set"
"github.com/scroll-tech/go-ethereum/log"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/scroll-tech/go-ethereum/log"
) )
const ( const (

View file

@ -23,9 +23,9 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/mattn/go-colorable"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/mattn/go-colorable"
) )
func TestEncryption(t *testing.T) { func TestEncryption(t *testing.T) {

View file

@ -21,8 +21,8 @@ import (
"reflect" "reflect"
"strings" "strings"
"github.com/scroll-tech/go-ethereum/accounts/abi"
fuzz "github.com/google/gofuzz" fuzz "github.com/google/gofuzz"
"github.com/scroll-tech/go-ethereum/accounts/abi"
) )
var ( var (

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found // Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file. // in the LICENSE file.
//go:build gofuzz
// +build gofuzz // +build gofuzz
package bn256 package bn256

View file

@ -22,8 +22,8 @@ import (
"fmt" "fmt"
"github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcd/btcec"
"github.com/scroll-tech/go-ethereum/crypto/secp256k1"
fuzz "github.com/google/gofuzz" fuzz "github.com/google/gofuzz"
"github.com/scroll-tech/go-ethereum/crypto/secp256k1"
) )
func Fuzz(input []byte) int { func Fuzz(input []byte) int {

View file

@ -23,12 +23,12 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
bloomfilter "github.com/holiman/bloomfilter/v2"
"github.com/scroll-tech/go-ethereum/common" "github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/rawdb" "github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/ethdb" "github.com/scroll-tech/go-ethereum/ethdb"
"github.com/scroll-tech/go-ethereum/log" "github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/metrics" "github.com/scroll-tech/go-ethereum/metrics"
bloomfilter "github.com/holiman/bloomfilter/v2"
) )
var ( var (