Skip to content

Commit

Permalink
Merge #1694
Browse files Browse the repository at this point in the history
1694: Update libp2p-tls to fix issue with secured gRPC certificate r=peterargue a=peterargue

Depends on #1692, which updates the min go version to 1.16.

Updates required to pull in this change: libp2p/go-libp2p-tls#100

The `libp2p/go-libp2p-tls` PR updates the certificate generated by the `NewIdentity` method to include subject and issuer fields, making it compliant with the x509 Certificate standard ([RFC3280](https://datatracker.ietf.org/doc/html/rfc3280#section-4.1.2)).

This involves updating various other libp2p libraries, which now require go version 1.16.

Co-authored-by: Peter Argue <[email protected]>
  • Loading branch information
bors[bot] and peterargue authored Nov 30, 2021
2 parents c5ee8b7 + 3d3b9c4 commit a94d2fb
Show file tree
Hide file tree
Showing 12 changed files with 357 additions and 184 deletions.
7 changes: 5 additions & 2 deletions engine/execution/state_synchronization/state_diff_storer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package state_synchronization

import (
"bytes"
"context"
"fmt"
"io"

Expand Down Expand Up @@ -118,7 +119,8 @@ func (s *StateDiffStorer) readBlocks(cids []cid.Cid) (interface{}, error) {
dec := s.codec.NewDecoder(comp)
var code byte
for i, c := range cids {
block, err := s.blockWriter.bstore.Get(c)
// TODO: cheating on this context since this code is unused and about to be completely refactored
block, err := s.blockWriter.bstore.Get(context.Background(), c)
if err != nil {
return nil, fmt.Errorf("failed to get block %v from blockstore: %w", c, err)
}
Expand Down Expand Up @@ -184,7 +186,8 @@ func (bw *BlockWriter) Flush() error {

func (bw *BlockWriter) writeBlock(data []byte) error {
block := blocks.NewBlock(data)
if err := bw.bstore.Put(block); err != nil {
// TODO: cheating on this context since this code is unused and about to be completely refactored
if err := bw.bstore.Put(context.Background(), block); err != nil {
return fmt.Errorf("failed to put block %v into blockstore: %w", block.Cid(), err)
}
bw.cids = append(bw.cids, block.Cid())
Expand Down
51 changes: 28 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.8.0
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.5.1
github.com/aws/aws-sdk-go-v2/service/s3 v1.15.0
github.com/benbjohnson/clock v1.3.0 // indirect
github.com/bsipos/thist v1.0.0
github.com/btcsuite/btcd v0.21.0-beta
github.com/btcsuite/btcd v0.22.0-beta
github.com/dapperlabs/testingdock v0.4.2
github.com/davecgh/go-spew v1.1.1
github.com/dgraph-io/badger/v2 v2.0.3
Expand All @@ -28,31 +29,32 @@ require (
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0-20200501113911-9a95f0fdbfea
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.6.0
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/golang-lru v0.5.4
github.com/improbable-eng/grpc-web v0.12.0
github.com/ipfs/go-bitswap v0.4.0
github.com/ipfs/go-bitswap v0.5.0
github.com/ipfs/go-block-format v0.0.3
github.com/ipfs/go-cid v0.0.7
github.com/ipfs/go-datastore v0.4.5
github.com/ipfs/go-ipfs-blockstore v0.1.6
github.com/ipfs/go-ipfs-exchange-interface v0.0.1
github.com/ipfs/go-cid v0.1.0
github.com/ipfs/go-datastore v0.5.0
github.com/ipfs/go-ipfs-blockstore v1.1.1
github.com/ipfs/go-ipfs-exchange-interface v0.1.0
github.com/ipfs/go-log v1.0.5
github.com/ipld/go-ipld-prime v0.12.0 // indirect
github.com/ipld/go-ipld-prime v0.14.1 // indirect
github.com/jrick/bitset v1.0.0
github.com/kr/text v0.2.0 // indirect
github.com/libp2p/go-addr-util v0.1.0
github.com/libp2p/go-libp2p v0.14.4
github.com/libp2p/go-libp2p-core v0.8.6
github.com/libp2p/go-libp2p-discovery v0.5.0
github.com/libp2p/go-libp2p-kad-dht v0.13.0
github.com/libp2p/go-libp2p-pubsub v0.4.1
github.com/libp2p/go-libp2p-swarm v0.5.3
github.com/libp2p/go-libp2p-tls v0.1.3
github.com/libp2p/go-libp2p-transport-upgrader v0.4.6
github.com/libp2p/go-tcp-transport v0.2.7
github.com/libp2p/go-libp2p v0.16.0
github.com/libp2p/go-libp2p-core v0.11.0
github.com/libp2p/go-libp2p-discovery v0.6.0
github.com/libp2p/go-libp2p-kad-dht v0.15.0
github.com/libp2p/go-libp2p-pubsub v0.6.0
github.com/libp2p/go-libp2p-swarm v0.8.0
github.com/libp2p/go-libp2p-tls v0.3.1
github.com/libp2p/go-libp2p-transport-upgrader v0.5.0
github.com/libp2p/go-tcp-transport v0.4.0
github.com/m4ksio/wal v1.0.0
github.com/multiformats/go-multiaddr v0.3.3
github.com/multiformats/go-base32 v0.0.4 // indirect
github.com/multiformats/go-multiaddr v0.4.1
github.com/multiformats/go-multiaddr-dns v0.3.1
github.com/onflow/atree v0.1.0-beta1.0.20211027184039-559ee654ece9
github.com/onflow/cadence v0.20.1
Expand All @@ -67,7 +69,7 @@ require (
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.10.0
github.com/prometheus/client_golang v1.11.0
github.com/psiemens/sconfig v0.1.0 // indirect
github.com/rs/zerolog v1.19.0
github.com/schollz/progressbar/v3 v3.8.3
Expand All @@ -82,12 +84,14 @@ require (
github.com/uber/jaeger-lib v2.4.0+incompatible // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible
github.com/vmihailenco/msgpack/v4 v4.3.11
go.uber.org/atomic v1.7.0
go.uber.org/multierr v1.6.0
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
go.uber.org/atomic v1.9.0
go.uber.org/multierr v1.7.0
go.uber.org/zap v1.19.1 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6
golang.org/x/net v0.0.0-20211123203042-d83791d6bcd9 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/text v0.3.7 // indirect
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
google.golang.org/api v0.58.0
google.golang.org/genproto v0.0.0-20211007155348-82e027067bd4
Expand All @@ -96,6 +100,7 @@ require (
google.golang.org/protobuf v1.27.1
gopkg.in/ini.v1 v1.63.0 // indirect
gotest.tools v2.2.0+incompatible
lukechampine.com/blake3 v1.1.7 // indirect
pgregory.net/rapid v0.4.7
)

Expand Down
Loading

0 comments on commit a94d2fb

Please sign in to comment.