This commit is contained in:
islishude 2025-03-02 10:00:38 +08:00
parent b2e0fdad7b
commit fc663874c8
7 changed files with 7 additions and 7 deletions

View File

@ -18,13 +18,13 @@ package main
import ( import (
"errors" "errors"
"maps"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/p2p/enode"
"maps"
) )
type crawler struct { type crawler struct {

View File

@ -19,6 +19,7 @@ package clique
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"maps"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/hexutil"
@ -26,7 +27,6 @@ import (
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
"maps"
) )
// API is a user facing RPC API to allow controlling the signer and voting // API is a user facing RPC API to allow controlling the signer and voting

View File

@ -20,6 +20,7 @@ import (
"bytes" "bytes"
"errors" "errors"
"fmt" "fmt"
"maps"
gomath "math" gomath "math"
"math/big" "math/big"
"math/rand" "math/rand"
@ -45,7 +46,6 @@ import (
"github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/trie" "github.com/ethereum/go-ethereum/trie"
"github.com/holiman/uint256" "github.com/holiman/uint256"
"maps"
) )
// So we can deterministically seed different blockchains // So we can deterministically seed different blockchains

View File

@ -19,6 +19,7 @@ package snapshot
import ( import (
"bytes" "bytes"
crand "crypto/rand" crand "crypto/rand"
"maps"
"math/rand" "math/rand"
"testing" "testing"
@ -26,7 +27,6 @@ import (
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/ethereum/go-ethereum/ethdb/memorydb"
"maps"
) )
func copyAccounts(accounts map[common.Hash][]byte) map[common.Hash][]byte { func copyAccounts(accounts map[common.Hash][]byte) map[common.Hash][]byte {

View File

@ -19,6 +19,7 @@ package txpool
import ( import (
"errors" "errors"
"fmt" "fmt"
"maps"
"math/big" "math/big"
"sync" "sync"
@ -29,7 +30,6 @@ import (
"github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/metrics"
"maps"
) )
// TxStatus is the current status of a transaction as seen by the pool. // TxStatus is the current status of a transaction as seen by the pool.

View File

@ -17,10 +17,10 @@
package rpc package rpc
import ( import (
"maps"
"net/http" "net/http"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"maps"
) )
// ClientOption is a configuration option for the RPC client. // ClientOption is a configuration option for the RPC client.

View File

@ -20,6 +20,7 @@ import (
"context" "context"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"maps"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"
@ -30,7 +31,6 @@ import (
mapset "github.com/deckarep/golang-set/v2" mapset "github.com/deckarep/golang-set/v2"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"maps"
) )
const ( const (