Commit 1755039d authored by Steven Allen's avatar Steven Allen

gx: update go-libp2p-peerstore

parent 6a4fe011
......@@ -9,9 +9,9 @@
"gxDependencies": [
{
"author": "whyrusleeping",
"hash": "QmQSbtGXCyNrj34LWL8EgXyNNYDZ8r3SwQcpW5pPxVhLnM",
"hash": "QmZNJyx9GGCX4GeuHnLB8fxaxMLs4MjTjHokxfQcCd6Nve",
"name": "go-libp2p-net",
"version": "3.0.8"
"version": "3.0.9"
},
{
"author": "whyrusleeping",
......@@ -21,9 +21,9 @@
},
{
"author": "whyrusleeping",
"hash": "QmeKD8YT7887Xu6Z86iZmpYNxrLogJexqxEugSmaf14k64",
"hash": "Qmda4cPRvSRyox3SqgJN6DfSZGU5TtHufPTp9uXjFj71X6",
"name": "go-libp2p-peerstore",
"version": "1.4.24"
"version": "2.0.0"
},
{
"author": "whyrusleeping",
......@@ -33,9 +33,9 @@
},
{
"author": "whyrusleeping",
"hash": "QmcDUyb52N62J8ZamGgUWUyWc1MtuCBce7WFA4D9xA6cwF",
"hash": "QmU129xU8dM79BgR97hu4fsiUDkTQrNHbzkiYfyrkNci8o",
"name": "go-libp2p-transport",
"version": "3.0.8"
"version": "3.0.9"
},
{
"author": "whyrusleeping",
......@@ -63,9 +63,9 @@
},
{
"author": "whyrusleeping",
"hash": "Qmcw9fndogcYwyGs4a5TPDbnZPBLxvtrBZzpvyyVDzxDWT",
"hash": "QmV8KW6eBanaxCxGNrXx8Q3fZUqvumCz2Hwd2FGpb3vzYC",
"name": "go-tcp-transport",
"version": "2.0.8"
"version": "2.0.9"
},
{
"author": "whyrusleeping",
......@@ -134,21 +134,21 @@
},
{
"author": "stebalien",
"hash": "Qmd4VzS3T7ckhHcLCpWwgVMYe6RcKhYjNKfy1g7LJ5myjv",
"hash": "QmPGWMxTWBJwfH1dJo4J7eV4Fgpzb9gukPRkeEN1ycAkNu",
"name": "go-conn-security-multistream",
"version": "0.1.8"
"version": "0.1.9"
},
{
"author": "steb",
"hash": "QmefQrpDSYX6jQRtUyhcASFVBDkoAsDTPXemyxGMzA3phK",
"hash": "QmWRcKvbFVND1vSTJZv5imdBxmkj9FFJ5Jku1qWxasAAMo",
"name": "go-libp2p-transport-upgrader",
"version": "0.1.8"
"version": "0.1.9"
},
{
"author": "whyrusleeping",
"hash": "QmWri2HWdxHjWBUermhWy7QWJqN1cV8Gd1QbDiB5m86f1H",
"hash": "QmReYSQGHjf28pKf93FwyD72mLXoZo94MB2Cq6VBSUHvFB",
"name": "go-libp2p-secio",
"version": "2.0.8"
"version": "2.0.9"
}
],
"gxVersion": "0.9.1",
......
......@@ -8,6 +8,7 @@ import (
metrics "github.com/libp2p/go-libp2p-metrics"
inet "github.com/libp2p/go-libp2p-net"
pstore "github.com/libp2p/go-libp2p-peerstore"
pstoremem "github.com/libp2p/go-libp2p-peerstore/pstoremem"
secio "github.com/libp2p/go-libp2p-secio"
tptu "github.com/libp2p/go-libp2p-transport-upgrader"
tcp "github.com/libp2p/go-tcp-transport"
......@@ -66,7 +67,7 @@ func GenSwarm(t *testing.T, ctx context.Context, opts ...Option) *swarm.Swarm {
p := tu.RandPeerNetParamsOrFatal(t)
ps := pstore.NewPeerstore()
ps := pstoremem.NewPeerstore()
ps.AddPubKey(p.ID, p.PubKey)
ps.AddPrivKey(p.ID, p.PrivKey)
s := swarm.NewSwarm(ctx, p.ID, ps, metrics.NewBandwidthCounter())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment