Skip to content

Commit 3729f32

Browse files
authored
chore(deps): bump most libp2p dependencies (#2788)
- `github.com/libp2p/go-libp2p-core/*` -> `github.com/libp2p/go-libp2p/core/*` - `github.com/libp2p/go-libp2p-peerstore/pstoreds` -> `github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds` - `github.com/libp2p/go-libp2p-discovery` -> `github.com/libp2p/go-libp2p/p2p/discovery/routing` - Fix btcsuite/btcd module issues - Update mocks
1 parent 00b2ec1 commit 3729f32

Some content is hidden

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

76 files changed

+245
-618
lines changed

dot/core/interfaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"encoding/json"
88
"sync"
99

10-
"github.com/libp2p/go-libp2p-core/peer"
10+
"github.com/libp2p/go-libp2p/core/peer"
1111

1212
"github.com/ChainSafe/gossamer/dot/network"
1313
"github.com/ChainSafe/gossamer/dot/peerset"

dot/core/messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/ChainSafe/gossamer/lib/runtime"
1313
"github.com/ChainSafe/gossamer/lib/transaction"
1414

15-
"github.com/libp2p/go-libp2p-core/peer"
15+
"github.com/libp2p/go-libp2p/core/peer"
1616
)
1717

1818
func (s *Service) validateTransaction(head *types.Header, rt RuntimeInstance,

dot/core/messages_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/ChainSafe/gossamer/pkg/scale"
2525

2626
"github.com/golang/mock/gomock"
27-
"github.com/libp2p/go-libp2p-core/peer"
27+
"github.com/libp2p/go-libp2p/core/peer"
2828
"github.com/stretchr/testify/require"
2929
)
3030

dot/core/messages_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/ChainSafe/gossamer/lib/transaction"
1818

1919
"github.com/golang/mock/gomock"
20-
"github.com/libp2p/go-libp2p-core/peer"
20+
"github.com/libp2p/go-libp2p/core/peer"
2121
"github.com/stretchr/testify/assert"
2222
"github.com/stretchr/testify/require"
2323
)

dot/core/mocks_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dot/network/block_announce.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/ChainSafe/gossamer/lib/common"
1414
"github.com/ChainSafe/gossamer/pkg/scale"
1515

16-
"github.com/libp2p/go-libp2p-core/peer"
16+
"github.com/libp2p/go-libp2p/core/peer"
1717
)
1818

1919
var (
@@ -36,7 +36,7 @@ func (*BlockAnnounceMessage) Type() byte {
3636
return blockAnnounceMsgType
3737
}
3838

39-
// string formats a BlockAnnounceMessage as a string
39+
// String formats a BlockAnnounceMessage as a string
4040
func (bm *BlockAnnounceMessage) String() string {
4141
return fmt.Sprintf("BlockAnnounceMessage ParentHash=%s Number=%d StateRoot=%s ExtrinsicsRoot=%s Digest=%v",
4242
bm.ParentHash,

dot/network/block_announce_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/ChainSafe/gossamer/pkg/scale"
1515
gomock "github.com/golang/mock/gomock"
1616

17-
"github.com/libp2p/go-libp2p-core/peer"
17+
"github.com/libp2p/go-libp2p/core/peer"
1818
"github.com/stretchr/testify/require"
1919
)
2020

dot/network/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"path"
99
"time"
1010

11-
"github.com/libp2p/go-libp2p-core/crypto"
11+
"github.com/libp2p/go-libp2p/core/crypto"
1212

1313
"github.com/ChainSafe/gossamer/internal/log"
1414
"github.com/ChainSafe/gossamer/internal/metrics"

dot/network/connmgr.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"context"
88
"sync"
99

10-
"github.com/libp2p/go-libp2p-core/connmgr"
11-
"github.com/libp2p/go-libp2p-core/network"
12-
"github.com/libp2p/go-libp2p-core/peer"
10+
"github.com/libp2p/go-libp2p/core/connmgr"
11+
"github.com/libp2p/go-libp2p/core/network"
12+
"github.com/libp2p/go-libp2p/core/peer"
1313
ma "github.com/multiformats/go-multiaddr"
1414

1515
"github.com/ChainSafe/gossamer/dot/peerset"

dot/network/connmgr_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/libp2p/go-libp2p-core/peer"
13-
"github.com/libp2p/go-libp2p-core/peerstore"
12+
"github.com/libp2p/go-libp2p/core/peer"
13+
"github.com/libp2p/go-libp2p/core/peerstore"
1414
"github.com/stretchr/testify/require"
1515

1616
"github.com/ChainSafe/gossamer/dot/peerset"

0 commit comments

Comments
 (0)