This commit is contained in:
islishude 2025-03-02 09:56:40 +08:00
parent 0b28df8e7b
commit 7888f922e7
16 changed files with 18 additions and 16 deletions

View File

@ -18,12 +18,12 @@ package accounts
import (
"reflect"
"slices"
"sort"
"sync"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event"
"slices"
)
// managerSubBufferSize determines how many incoming wallet events

View File

@ -28,6 +28,7 @@ import (
"fmt"
"math/big"
"regexp"
"slices"
"sort"
"strings"
"sync"
@ -41,7 +42,6 @@ import (
"github.com/ethereum/go-ethereum/log"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/status-im/keycard-go/derivationpath"
"slices"
)
// ErrPairingPasswordNeeded is returned if opening the smart card requires pairing with a pairing

View File

@ -22,6 +22,7 @@ import (
"fmt"
"io"
"math/big"
"slices"
"sync"
"time"
@ -32,7 +33,6 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/karalabe/hid"
"slices"
)
// Maximum time between wallet health checks to detect USB unplugs.

View File

@ -19,12 +19,12 @@ package light
import (
"encoding/binary"
"fmt"
"slices"
"github.com/ethereum/go-ethereum/common/lru"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"slices"
)
// canonicalStore stores instances of the given type in a database and caches

View File

@ -21,6 +21,7 @@ import (
"crypto/rand"
"fmt"
"reflect"
"slices"
"sync"
"time"
@ -34,7 +35,6 @@ import (
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/holiman/uint256"
"slices"
)
// Suite represents a structure used to test a node's conformance

View File

@ -19,6 +19,7 @@ package rawdb
import (
"errors"
"fmt"
"slices"
"sync"
"time"
@ -26,7 +27,6 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"slices"
)
const (

View File

@ -25,6 +25,7 @@ import (
"math/big"
"os"
"path/filepath"
"slices"
"sort"
"sync"
"time"
@ -44,7 +45,6 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/holiman/billy"
"github.com/holiman/uint256"
"slices"
)
const (

View File

@ -21,13 +21,13 @@ import (
"crypto/sha256"
"fmt"
"math/big"
"slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto/kzg4844"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/holiman/uint256"
"slices"
)
// BlobTx represents an EIP-4844 transaction.

View File

@ -19,6 +19,7 @@ package downloader
import (
"fmt"
"math/big"
"slices"
"sync"
"sync/atomic"
"testing"
@ -38,7 +39,6 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/trie"
"slices"
)
// downloadTester is a test simulator for mocking out local block chain.

View File

@ -24,13 +24,14 @@ import (
"sort"
"time"
"slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/protocols/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"slices"
)
// scratchHeaders is the number of headers to store in a scratch space to allow

View File

@ -25,13 +25,14 @@ import (
"testing"
"time"
"slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/protocols/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"slices"
)
// hookedBackfiller is a tester backfiller with all interface methods mocked and

View File

@ -19,6 +19,7 @@ package downloader
import (
"fmt"
"math/big"
"slices"
"sync"
"time"
@ -31,7 +32,6 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/triedb"
"slices"
)
// Test chain parameters.

View File

@ -24,6 +24,7 @@ import (
gomath "math"
"math/big"
"math/rand"
"slices"
"sort"
"sync"
"sync/atomic"
@ -42,7 +43,6 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/trie"
"github.com/ethereum/go-ethereum/trie/trienode"
"slices"
)
const (

View File

@ -19,6 +19,7 @@ package native
import (
"encoding/json"
"math/big"
"slices"
"strconv"
"sync/atomic"
@ -28,7 +29,6 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/tracers"
"github.com/ethereum/go-ethereum/params"
"slices"
)
func init() {

View File

@ -28,6 +28,7 @@ import (
"net"
"net/netip"
"reflect"
"slices"
"sync"
"testing"
"time"
@ -37,7 +38,6 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover/v4wire"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr"
"slices"
)
// shared test variables

View File

@ -19,6 +19,7 @@ package trie
import (
"errors"
"fmt"
"slices"
"sync"
"github.com/ethereum/go-ethereum/common"
@ -30,7 +31,6 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"slices"
)
// ErrNotRequested is returned by the trie sync when it's requested to process a