mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Go fmt -w
This commit is contained in:
parent
4d4c67ee5b
commit
198fa243b5
61 changed files with 98 additions and 103 deletions
|
|
@ -22,10 +22,10 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/karalabe/hid"
|
||||
"github.com/orangeAndSuns/go-ethereum/accounts"
|
||||
"github.com/orangeAndSuns/go-ethereum/event"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/karalabe/hid"
|
||||
)
|
||||
|
||||
// LedgerScheme is the protocol scheme prefixing account and wallet URLs.
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ import (
|
|||
"io"
|
||||
"math/big"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/orangeAndSuns/go-ethereum/accounts"
|
||||
"github.com/orangeAndSuns/go-ethereum/accounts/usbwallet/internal/trezor"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/common/hexutil"
|
||||
"github.com/orangeAndSuns/go-ethereum/core/types"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
// ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/karalabe/hid"
|
||||
ethereum "github.com/orangeAndSuns/go-ethereum"
|
||||
"github.com/orangeAndSuns/go-ethereum/accounts"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/core/types"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/karalabe/hid"
|
||||
)
|
||||
|
||||
// Maximum time between wallet health checks to detect USB unplugs.
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ import (
|
|||
|
||||
cli "gopkg.in/urfave/cli.v1"
|
||||
|
||||
"github.com/naoina/toml"
|
||||
"github.com/orangeAndSuns/go-ethereum/cmd/utils"
|
||||
"github.com/orangeAndSuns/go-ethereum/dashboard"
|
||||
"github.com/orangeAndSuns/go-ethereum/eth"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
whisper "github.com/orangeAndSuns/go-ethereum/whisper/whisperv6"
|
||||
"github.com/naoina/toml"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gizak/termui"
|
||||
"github.com/orangeAndSuns/go-ethereum/cmd/utils"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
"github.com/gizak/termui"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/olekukonko/tablewriter"
|
||||
"github.com/orangeAndSuns/go-ethereum/core"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/olekukonko/tablewriter"
|
||||
)
|
||||
|
||||
// networkStats verifies the status of network components and generates a protip
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ import (
|
|||
|
||||
cli "gopkg.in/urfave/cli.v1"
|
||||
|
||||
"github.com/naoina/toml"
|
||||
"github.com/orangeAndSuns/go-ethereum/cmd/utils"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
"github.com/naoina/toml"
|
||||
|
||||
bzzapi "github.com/orangeAndSuns/go-ethereum/swarm/api"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ import (
|
|||
"os"
|
||||
"sort"
|
||||
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
|
||||
cli "gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
swarm "github.com/orangeAndSuns/go-ethereum/swarm/api/client"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var loglevel = flag.Int("loglevel", 3, "verbosity of logs")
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/accounts"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/common/hexutil"
|
||||
|
|
@ -39,7 +40,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
"github.com/orangeAndSuns/go-ethereum/rlp"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ import (
|
|||
"encoding/json"
|
||||
"sort"
|
||||
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/core/types"
|
||||
"github.com/orangeAndSuns/go-ethereum/ethdb"
|
||||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
// Vote represents a single vote that an authorized signer made to modify the
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ import (
|
|||
"unsafe"
|
||||
|
||||
mmap "github.com/edsrzf/mmap-go"
|
||||
"github.com/hashicorp/golang-lru/simplelru"
|
||||
"github.com/orangeAndSuns/go-ethereum/consensus"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
"github.com/hashicorp/golang-lru/simplelru"
|
||||
)
|
||||
|
||||
var ErrInvalidDumpMagic = errors.New("invalid dump magic")
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ import (
|
|||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/internal/jsre"
|
||||
"github.com/orangeAndSuns/go-ethereum/internal/web3ext"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
"github.com/mattn/go-colorable"
|
||||
"github.com/peterh/liner"
|
||||
"github.com/robertkrimen/otto"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/common/mclock"
|
||||
"github.com/orangeAndSuns/go-ethereum/consensus"
|
||||
|
|
@ -42,7 +43,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
"github.com/orangeAndSuns/go-ethereum/rlp"
|
||||
"github.com/orangeAndSuns/go-ethereum/trie"
|
||||
"github.com/hashicorp/golang-lru"
|
||||
"gopkg.in/karalabe/cookiejar.v2/collections/prque"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/consensus"
|
||||
"github.com/orangeAndSuns/go-ethereum/core/rawdb"
|
||||
|
|
@ -33,7 +34,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/ethdb"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
"github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ import (
|
|||
"fmt"
|
||||
"sync"
|
||||
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/ethdb"
|
||||
"github.com/orangeAndSuns/go-ethereum/trie"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
// Trie cache generation limit after which to evict trie nodes from memory.
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ import (
|
|||
"io"
|
||||
|
||||
"github.com/elastic/gosigar"
|
||||
"github.com/mohae/deepcopy"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p"
|
||||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
"github.com/mohae/deepcopy"
|
||||
"golang.org/x/net/websocket"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/mohae/deepcopy"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/rjeczalik/notify"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ import (
|
|||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/fjl/memsize/memsizeui"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/log/term"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics/exp"
|
||||
"github.com/fjl/memsize/memsizeui"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/golang-lru"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/consensus"
|
||||
"github.com/orangeAndSuns/go-ethereum/core"
|
||||
|
|
@ -35,7 +36,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/params"
|
||||
"github.com/orangeAndSuns/go-ethereum/rlp"
|
||||
"github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import (
|
|||
uurl "net/url"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/client"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/influxdata/influxdb/client"
|
||||
)
|
||||
|
||||
type reporter struct {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/jackpal/go-nat-pmp"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
)
|
||||
|
||||
// An implementation of nat.Interface can map local ports to ports
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p"
|
||||
"github.com/orangeAndSuns/go-ethereum/rlp"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/tracing"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
// error codes used by this protocol scheme
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/golang/snappy"
|
||||
"github.com/orangeAndSuns/go-ethereum/crypto"
|
||||
"github.com/orangeAndSuns/go-ethereum/crypto/ecies"
|
||||
"github.com/orangeAndSuns/go-ethereum/crypto/secp256k1"
|
||||
"github.com/orangeAndSuns/go-ethereum/crypto/sha3"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/discover"
|
||||
"github.com/orangeAndSuns/go-ethereum/rlp"
|
||||
"github.com/golang/snappy"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/julienschmidt/httprouter"
|
||||
"github.com/orangeAndSuns/go-ethereum/event"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/discover"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/simulations/adapters"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
"github.com/julienschmidt/httprouter"
|
||||
"golang.org/x/net/websocket"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import (
|
|||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
func TestEncryption(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/contracts/ens"
|
||||
"github.com/orangeAndSuns/go-ethereum/core/types"
|
||||
|
|
@ -40,7 +41,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage/mru"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/api"
|
||||
|
|
@ -44,7 +45,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage/mru"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
|
||||
"github.com/pborman/uuid"
|
||||
"github.com/rs/cors"
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/simulations/adapters"
|
||||
"github.com/orangeAndSuns/go-ethereum/rpc"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
|
|
@ -40,7 +41,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/p2p/simulations/adapters"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/network"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/state"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
// serviceName is used with the exec adapter so the exec'd binary knows which
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/discover"
|
||||
|
|
@ -34,7 +35,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/p2p/simulations/adapters"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/network"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/state"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
|
|
@ -42,7 +43,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage/mock"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage/mock/db"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import (
|
|||
"errors"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/common"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/discover"
|
||||
|
|
@ -28,7 +29,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/network"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/log"
|
||||
bv "github.com/orangeAndSuns/go-ethereum/swarm/network/bitvector"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
// Stream defines a unique stream identifier.
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/protocols"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/log"
|
||||
|
|
@ -30,7 +31,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/state"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
var sendTimeout = 30 * time.Second
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p"
|
||||
"github.com/orangeAndSuns/go-ethereum/p2p/discover"
|
||||
|
|
@ -35,7 +36,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/state"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/crypto"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/node"
|
||||
|
|
@ -37,7 +38,6 @@ import (
|
|||
"github.com/orangeAndSuns/go-ethereum/swarm/network"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/network/simulation"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/storage"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
olog "github.com/opentracing/opentracing-go/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/metrics"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
olog "github.com/opentracing/opentracing-go/log"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/orangeAndSuns/go-ethereum/log"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ import (
|
|||
"context"
|
||||
"time"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/log"
|
||||
"github.com/orangeAndSuns/go-ethereum/swarm/spancontext"
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
2
vendor/github.com/uber/jaeger-client-go/thrift/protocol.go
generated
vendored
2
vendor/github.com/uber/jaeger-client-go/thrift/protocol.go
generated
vendored
|
|
@ -90,7 +90,7 @@ func SkipDefaultDepth(prot TProtocol, typeId TType) (err error) {
|
|||
func Skip(self TProtocol, fieldType TType, maxDepth int) (err error) {
|
||||
|
||||
if maxDepth <= 0 {
|
||||
return NewTProtocolExceptionWithType( DEPTH_LIMIT, errors.New("Depth limit exceeded"))
|
||||
return NewTProtocolExceptionWithType(DEPTH_LIMIT, errors.New("Depth limit exceeded"))
|
||||
}
|
||||
|
||||
switch fieldType {
|
||||
|
|
|
|||
3
vendor/github.com/uber/jaeger-client-go/thrift/protocol_exception.go
generated
vendored
3
vendor/github.com/uber/jaeger-client-go/thrift/protocol_exception.go
generated
vendored
|
|
@ -60,7 +60,7 @@ func NewTProtocolException(err error) TProtocolException {
|
|||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
if e,ok := err.(TProtocolException); ok {
|
||||
if e, ok := err.(TProtocolException); ok {
|
||||
return e
|
||||
}
|
||||
if _, ok := err.(base64.CorruptInputError); ok {
|
||||
|
|
@ -75,4 +75,3 @@ func NewTProtocolExceptionWithType(errType int, err error) TProtocolException {
|
|||
}
|
||||
return &tProtocolException{errType, err.Error()}
|
||||
}
|
||||
|
||||
|
|
|
|||
1
vendor/github.com/uber/jaeger-client-go/thrift/rich_transport.go
generated
vendored
1
vendor/github.com/uber/jaeger-client-go/thrift/rich_transport.go
generated
vendored
|
|
@ -66,4 +66,3 @@ func writeByte(w io.Writer, c byte) error {
|
|||
_, err := w.Write(v[0:1])
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
3
vendor/github.com/uber/jaeger-client-go/thrift/transport.go
generated
vendored
3
vendor/github.com/uber/jaeger-client-go/thrift/transport.go
generated
vendored
|
|
@ -34,7 +34,6 @@ type ReadSizeProvider interface {
|
|||
RemainingBytes() (num_bytes uint64)
|
||||
}
|
||||
|
||||
|
||||
// Encapsulates the I/O layer
|
||||
type TTransport interface {
|
||||
io.ReadWriteCloser
|
||||
|
|
@ -52,7 +51,6 @@ type stringWriter interface {
|
|||
WriteString(s string) (n int, err error)
|
||||
}
|
||||
|
||||
|
||||
// This is "enchanced" transport with extra capabilities. You need to use one of these
|
||||
// to construct protocol.
|
||||
// Notably, TSocket does not implement this interface, and it is always a mistake to use
|
||||
|
|
@ -65,4 +63,3 @@ type TRichTransport interface {
|
|||
Flusher
|
||||
ReadSizeProvider
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue