Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
c46e8d6e
Commit
c46e8d6e
authored
6 years ago
by
Steven Allen
Browse files
Options
Download
Email Patches
Plain Diff
gx: update go-libp2p-peerstore
parent
521cd9ea
master
2018-Q4-OKR
fix/473
fix/no-custom-field
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
v6.0.12
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults.go
+2
-2
defaults.go
p2p/net/mock/mock_net.go
+2
-1
p2p/net/mock/mock_net.go
package.json
+30
-30
package.json
with
34 additions
and
33 deletions
+34
-33
defaults.go
View file @
c46e8d6e
...
...
@@ -6,7 +6,7 @@ import (
"crypto/rand"
crypto
"github.com/libp2p/go-libp2p-crypto"
pstore
"github.com/libp2p/go-libp2p-peerstore"
pstore
mem
"github.com/libp2p/go-libp2p-peerstore
/pstoremem
"
secio
"github.com/libp2p/go-libp2p-secio"
tcp
"github.com/libp2p/go-tcp-transport"
ws
"github.com/libp2p/go-ws-transport"
...
...
@@ -41,7 +41,7 @@ var DefaultTransports = ChainOptions(
// DefaultPeerstore configures libp2p to use the default peerstore.
var
DefaultPeerstore
Option
=
func
(
cfg
*
Config
)
error
{
return
cfg
.
Apply
(
Peerstore
(
pstore
.
NewPeerstore
()))
return
cfg
.
Apply
(
Peerstore
(
pstore
mem
.
NewPeerstore
()))
}
// RandomIdentity generates a random identity (default behaviour)
...
...
This diff is collapsed.
Click to expand it.
p2p/net/mock/mock_net.go
View file @
c46e8d6e
...
...
@@ -16,6 +16,7 @@ import (
p2putil
"github.com/libp2p/go-libp2p-netutil"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
pstoremem
"github.com/libp2p/go-libp2p-peerstore/pstoremem"
testutil
"github.com/libp2p/go-testutil"
ma
"github.com/multiformats/go-multiaddr"
)
...
...
@@ -70,7 +71,7 @@ func (mn *mocknet) AddPeer(k ic.PrivKey, a ma.Multiaddr) (host.Host, error) {
return
nil
,
err
}
ps
:=
pstore
.
NewPeerstore
()
ps
:=
pstore
mem
.
NewPeerstore
()
ps
.
AddAddr
(
p
,
a
,
pstore
.
PermanentAddrTTL
)
ps
.
AddPrivKey
(
p
,
k
)
ps
.
AddPubKey
(
p
,
k
.
GetPublic
())
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
c46e8d6e
...
...
@@ -61,27 +61,27 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
Wri2HWdxHjWBUermhWy7QWJqN1cV8Gd1QbDiB5m86f1H
"
,
"hash"
:
"Qm
ReYSQGHjf28pKf93FwyD72mLXoZo94MB2Cq6VBSUHvFB
"
,
"name"
:
"go-libp2p-secio"
,
"version"
:
"2.0.
8
"
"version"
:
"2.0.
9
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
eKD8YT7887Xu6Z86iZmpYNxrLogJexqxEugSmaf14k64
"
,
"hash"
:
"Qm
da4cPRvSRyox3SqgJN6DfSZGU5TtHufPTp9uXjFj71X6
"
,
"name"
:
"go-libp2p-peerstore"
,
"version"
:
"
1.4.24
"
"version"
:
"
2.0.0
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
cDUyb52N62J8ZamGgUWUyWc1MtuCBce7WFA4D9xA6cwF
"
,
"hash"
:
"Qm
U129xU8dM79BgR97hu4fsiUDkTQrNHbzkiYfyrkNci8o
"
,
"name"
:
"go-libp2p-transport"
,
"version"
:
"3.0.
8
"
"version"
:
"3.0.
9
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
cw9fndogcYwyGs4a5TPDbnZPBLxvtrBZzpvyyVDzxDWT
"
,
"hash"
:
"Qm
V8KW6eBanaxCxGNrXx8Q3fZUqvumCz2Hwd2FGpb3vzYC
"
,
"name"
:
"go-tcp-transport"
,
"version"
:
"2.0.
8
"
"version"
:
"2.0.
9
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -103,9 +103,9 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
QSbtGXCyNrj34LWL8EgXyNNYDZ8r3SwQcpW5pPxVhLnM
"
,
"hash"
:
"Qm
ZNJyx9GGCX4GeuHnLB8fxaxMLs4MjTjHokxfQcCd6Nve
"
,
"name"
:
"go-libp2p-net"
,
"version"
:
"3.0.
8
"
"version"
:
"3.0.
9
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -115,15 +115,15 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
fH9FKYv3Jp1xiyL8sPchGBUBg6JA6XviwajAo3qgnT3B
"
,
"hash"
:
"Qm
eMYW7Nj8jnnEfs9qhm7SxKkoDPUWXu3MsxX6BFwz34tf
"
,
"name"
:
"go-libp2p-host"
,
"version"
:
"3.0.
8
"
"version"
:
"3.0.
9
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
cc5CPuKyfDZNmqXNkk6j23CyZqZGypUv952NLHYGbeni
"
,
"hash"
:
"Qm
eDpqUwwdye8ABKVMPXKuWwPVURFdqTqssbTUB39E2Nwd
"
,
"name"
:
"go-libp2p-swarm"
,
"version"
:
"3.0.1
0
"
"version"
:
"3.0.1
1
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -133,15 +133,15 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
XeofKUbQf6diwT12ZmpmAjW9c47aXT43t7qG1bGTRQTj
"
,
"hash"
:
"Qm
fDapjsRAfzVpjeEm2tSmX19QpCrkLDXRCDDWJcbbUsFn
"
,
"name"
:
"go-libp2p-netutil"
,
"version"
:
"0.4.
6
"
"version"
:
"0.4.
7
"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
eKQeTT46oH3ezWeNLLaa8RtFbvijmxtyRiRuQD5wASDk
"
,
"hash"
:
"Qm
Q4bjZSEC5drCRqssuXRymCswHPmW3Z46ibgBtg9XGd34
"
,
"name"
:
"go-libp2p-blankhost"
,
"version"
:
"0.3.
8
"
"version"
:
"0.3.
9
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -169,9 +169,9 @@
},
{
"author"
:
"vyzo"
,
"hash"
:
"Qm
UveY3vGb6uQuzccihinJshn3KUFjvb5PaBZUVhqGx8TJ
"
,
"hash"
:
"Qm
WX6RySJ3yAYmfjLSw1LtRZnDh5oVeA9kM3scNQJkysqa
"
,
"name"
:
"go-libp2p-circuit"
,
"version"
:
"2.
1.1
1"
"version"
:
"2.
2.
1"
},
{
"author"
:
"lgierth"
,
...
...
@@ -181,9 +181,9 @@
},
{
"author"
:
"why"
,
"hash"
:
"Qm
Vz2p8ZVZ5GcWPNWGs2HZHiZyHumZcJpQdMRpxkMDhc2C
"
,
"hash"
:
"Qm
WGGN1nysi1qgqto31bENwESkmZBY4YGK4sZC3qhnqhSv
"
,
"name"
:
"go-libp2p-interface-connmgr"
,
"version"
:
"0.0.1
4
"
"version"
:
"0.0.1
5
"
},
{
"author"
:
"whyrusleeping"
,
...
...
@@ -193,21 +193,21 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
SQhZyqoEepHPHr6kCpAoYVHzvVkTHAAXnNqFEFbVaaQ
r"
,
"hash"
:
"Qm
ewujzx2quBisChBARfNDsMjTgUgs8qMkvCercSPQPLu
r"
,
"name"
:
"go-ws-transport"
,
"version"
:
"2.0.
8
"
"version"
:
"2.0.
9
"
},
{
"author"
:
"stebalien"
,
"hash"
:
"Qm
d4VzS3T7ckhHcLCpWwgVMYe6RcKhYjNKfy1g7LJ5myjv
"
,
"hash"
:
"Qm
PGWMxTWBJwfH1dJo4J7eV4Fgpzb9gukPRkeEN1ycAkNu
"
,
"name"
:
"go-conn-security-multistream"
,
"version"
:
"0.1.
8
"
"version"
:
"0.1.
9
"
},
{
"author"
:
"Stebalien"
,
"hash"
:
"Qm
NPQvc3jUA7L6oHB8en9PittPGazFMdoveN2oycHL6yWF
"
,
"hash"
:
"Qm
XaH5S5aHmbYyKSTMQDhWX8LzXfX91VGQFxaMdCuTUgBv
"
,
"name"
:
"go-conn-security"
,
"version"
:
"0.1.
8
"
"version"
:
"0.1.
9
"
},
{
"author"
:
"libp2p"
,
...
...
@@ -223,9 +223,9 @@
},
{
"author"
:
"steb"
,
"hash"
:
"Qm
efQrpDSYX6jQRtUyhcASFVBDkoAsDTPXemyxGMzA3phK
"
,
"hash"
:
"Qm
WRcKvbFVND1vSTJZv5imdBxmkj9FFJ5Jku1qWxasAAMo
"
,
"name"
:
"go-libp2p-transport-upgrader"
,
"version"
:
"0.1.
8
"
"version"
:
"0.1.
9
"
},
{
"hash"
:
"QmdxUuburamoF6zF9qjeQC4WYcWGbWuRmdLacMEsW8ioD8"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help