Skip to content

Commit 6a6ebfe

Browse files
janoszelig
authored andcommitted
vendor: upgrade go-ethereum to 1.9.2 (ethersphere#1689)
* vendor: upgrade go-ethereum to 1.9.2 * network: use explicit enode Node URLv4 representation
1 parent fe77fee commit 6a6ebfe

File tree

348 files changed

+36074
-23057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+36074
-23057
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ alltools:
1818
vendor: export GO111MODULE=on
1919
vendor:
2020
@go mod vendor
21-
@cp -rf "$(shell GO111MODULE=on go list -f {{.Dir}} github.com/karalabe/hid)/hidapi" vendor/github.com/karalabe/hid/hidapi
22-
@chmod -R u+w vendor/github.com/karalabe/hid/hidapi
23-
@cp -rf "$(shell GO111MODULE=on go list -f {{.Dir}} github.com/karalabe/hid)/libusb" vendor/github.com/karalabe/hid/libusb
24-
@chmod -R u+w vendor/github.com/karalabe/hid/libusb
21+
@cp -rf "$(shell GO111MODULE=on go list -f {{.Dir}} github.com/karalabe/usb)/hidapi" vendor/github.com/karalabe/usb/hidapi
22+
@chmod -R u+w vendor/github.com/karalabe/usb/hidapi
23+
@cp -rf "$(shell GO111MODULE=on go list -f {{.Dir}} github.com/karalabe/usb)/libusb" vendor/github.com/karalabe/usb/libusb
24+
@chmod -R u+w vendor/github.com/karalabe/usb/libusb
2525
@cp -rf "$(shell GO111MODULE=on go list -f {{.Dir}} github.com/ethereum/go-ethereum/crypto/secp256k1)/libsecp256k1" vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1
2626
@chmod -R u+w vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1

cmd/swarm/export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import (
3232
"strings"
3333
"testing"
3434

35-
"github.com/ethereum/go-ethereum/cmd/swarm/testdata"
3635
"github.com/ethereum/go-ethereum/log"
3736
"github.com/ethersphere/swarm"
37+
"github.com/ethersphere/swarm/cmd/testdata"
3838
"github.com/ethersphere/swarm/testutil"
3939
)
4040

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/docker/go-units v0.4.0 // indirect
2626
github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c // indirect
2727
github.com/elastic/gosigar v0.0.0-20180330100440-37f05ff46ffa // indirect
28-
github.com/ethereum/go-ethereum v0.0.0-20190531093028-7a22da98b9f8
28+
github.com/ethereum/go-ethereum v1.9.2
2929
github.com/fatih/color v1.7.0 // indirect
3030
github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc
3131
github.com/gballet/go-libpcsclite v0.0.0-20190528105824-2fd9b619dd3c // indirect
@@ -36,13 +36,15 @@ require (
3636
github.com/golang/protobuf v1.3.2 // indirect
3737
github.com/googleapis/gnostic v0.0.0-20190624222214-25d8b0b66985 // indirect
3838
github.com/gorilla/mux v1.7.3 // indirect
39+
github.com/gorilla/websocket v1.4.0 // indirect
40+
github.com/graph-gophers/graphql-go v0.0.0-20190724201507-010347b5f9e6 // indirect
3941
github.com/hashicorp/golang-lru v0.5.3
4042
github.com/howeyc/fsnotify v0.0.0-20151003194602-f0c08ee9c607 // indirect
4143
github.com/huin/goupnp v0.0.0-20161224104101-679507af18f3 // indirect
4244
github.com/influxdata/influxdb v0.0.0-20180221223340-01288bdb0883 // indirect
4345
github.com/jackpal/go-nat-pmp v0.0.0-20160603034137-1fa385a6f458 // indirect
4446
github.com/json-iterator/go v1.1.7 // indirect
45-
github.com/karalabe/hid v0.0.0-20181128192157-d815e0c1a2e2 // indirect
47+
github.com/karalabe/usb v0.0.0-20190819132248-550797b1cad8 // indirect
4648
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
4749
github.com/kylelemons/godebug v1.1.0 // indirect
4850
github.com/mattn/go-colorable v0.1.2
@@ -55,7 +57,7 @@ require (
5557
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
5658
github.com/opencontainers/image-spec v1.0.1 // indirect
5759
github.com/opencontainers/runc v0.1.1 // indirect
58-
github.com/opentracing/opentracing-go v0.0.0-20190218023034-25a84ff92183
60+
github.com/opentracing/opentracing-go v1.1.0
5961
github.com/oschwald/maxminddb-golang v0.0.0-20180819230143-277d39ecb83e // indirect
6062
github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222
6163
github.com/peterh/liner v0.0.0-20190123174540-a2c9a5303de7 // indirect

go.sum

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt
6060
github.com/elastic/gosigar v0.0.0-20180330100440-37f05ff46ffa h1:o8OuEkracbk3qH6GvlI6XpEN1HTSxkzOG42xZpfDv/s=
6161
github.com/elastic/gosigar v0.0.0-20180330100440-37f05ff46ffa/go.mod h1:cdorVVzy1fhmEqmtgqkoE3bYtCfSCkVyjTyCIo22xvs=
6262
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
63-
github.com/ethereum/go-ethereum v0.0.0-20190531093028-7a22da98b9f8 h1:qoL9GbzzbQGOG2RB24rwg7y7G5HF065nLKuRoubzJjw=
64-
github.com/ethereum/go-ethereum v0.0.0-20190531093028-7a22da98b9f8/go.mod h1:PwpWDrCLZrV+tfrhqqF6kPknbISMHaJv9Ln3kPCZLwY=
63+
github.com/ethereum/go-ethereum v1.9.2 h1:RMIHDO/diqXEgORSVzYx8xW9x2+S32PoAX5lQwya0Lw=
64+
github.com/ethereum/go-ethereum v1.9.2/go.mod h1:PwpWDrCLZrV+tfrhqqF6kPknbISMHaJv9Ln3kPCZLwY=
6565
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
6666
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
6767
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
@@ -111,6 +111,10 @@ github.com/googleapis/gnostic v0.0.0-20190624222214-25d8b0b66985/go.mod h1:sJBsC
111111
github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8=
112112
github.com/gorilla/mux v1.7.3 h1:gnP5JzjVOuiZD07fKKToCAOjS0yOpj/qPETTXCCS6hw=
113113
github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
114+
github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
115+
github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
116+
github.com/graph-gophers/graphql-go v0.0.0-20190724201507-010347b5f9e6 h1:9WiNlI9Cds5S5YITwRpRs8edNaq0nxTEymhDW20A1QE=
117+
github.com/graph-gophers/graphql-go v0.0.0-20190724201507-010347b5f9e6/go.mod h1:Au3iQ8DvDis8hZ4q2OzRcaKYlAsPt+fYvib5q4nIqu4=
114118
github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
115119
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
116120
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
@@ -133,8 +137,8 @@ github.com/json-iterator/go v1.1.7 h1:KfgG9LzI+pYjr4xvmz/5H4FXjokeP+rlHLhv3iH62F
133137
github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
134138
github.com/julienschmidt/httprouter v1.2.0 h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=
135139
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
136-
github.com/karalabe/hid v0.0.0-20181128192157-d815e0c1a2e2 h1:BkkpZxPVs3gIf+3Tejt8lWzuo2P29N1ChGUMEpuSJ8U=
137-
github.com/karalabe/hid v0.0.0-20181128192157-d815e0c1a2e2/go.mod h1:YvbcH+3Wo6XPs9nkgTY3u19KXLauXW+J5nB7hEHuX0A=
140+
github.com/karalabe/usb v0.0.0-20190819132248-550797b1cad8 h1:VhnqxaTIudc9IWKx8uXRLnpdSb9noCEj+vHacjmhp68=
141+
github.com/karalabe/usb v0.0.0-20190819132248-550797b1cad8/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
138142
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
139143
github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=
140144
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
@@ -190,8 +194,8 @@ github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVo
190194
github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
191195
github.com/opencontainers/runc v0.1.1 h1:GlxAyO6x8rfZYN9Tt0Kti5a/cP41iuiO2yYT0IJGY8Y=
192196
github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U=
193-
github.com/opentracing/opentracing-go v0.0.0-20190218023034-25a84ff92183 h1:kwFCLTA0DYhH0JpGMBOZtVVhyRL5ec+unn4mnoJhQI0=
194-
github.com/opentracing/opentracing-go v0.0.0-20190218023034-25a84ff92183/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
197+
github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=
198+
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
195199
github.com/oschwald/maxminddb-golang v0.0.0-20180819230143-277d39ecb83e h1:omG1VySlvwk85IQaRRzFnXZKi2ed5aHV03ynJNtRfW8=
196200
github.com/oschwald/maxminddb-golang v0.0.0-20180819230143-277d39ecb83e/go.mod h1:3jhIUymTJ5VREKyIhWm66LJiQt04F0UCDdodShpjWsY=
197201
github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222 h1:goeTyGkArOZIVOMA0dQbyuPWGNQJZGPwPu/QS9GlpnA=

network/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func RandomAddr() *BzzAddr {
6262

6363
// NewAddr constructs a BzzAddr from a node record.
6464
func NewAddr(node *enode.Node) *BzzAddr {
65-
return &BzzAddr{OAddr: node.ID().Bytes(), UAddr: []byte(node.String())}
65+
return &BzzAddr{OAddr: node.ID().Bytes(), UAddr: []byte(node.URLv4())}
6666
}
6767

6868
func PrivateKeyToBzzKey(prvKey *ecdsa.PrivateKey) []byte {

swarm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func (s *Swarm) Start(srv *p2p.Server) error {
370370
s.tracerClose = tracing.Closer
371371

372372
// update uaddr to correct enode
373-
newaddr := s.bzz.UpdateLocalAddr([]byte(srv.Self().String()))
373+
newaddr := s.bzz.UpdateLocalAddr([]byte(srv.Self().URLv4()))
374374
log.Info("Updated bzz local addr", "oaddr", fmt.Sprintf("%x", newaddr.OAddr), "uaddr", fmt.Sprintf("%s", newaddr.UAddr))
375375

376376
if s.config.SwapEnabled {

vendor/github.com/ethereum/go-ethereum/.travis.yml

Lines changed: 33 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)