Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kad-dht
Commits
8bac9264
Commit
8bac9264
authored
Nov 21, 2016
by
Jeromy Johnson
Committed by
GitHub
Nov 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from libp2p/deps/update-base32
update base32 package and fix tests
parents
98336d4f
9f89eb51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
dht.go
dht.go
+1
-1
dht_test.go
dht_test.go
+3
-2
package.json
package.json
+2
-2
No files found.
dht.go
View file @
8bac9264
...
...
@@ -52,7 +52,7 @@ type IpfsDHT struct {
routingTable
*
kb
.
RoutingTable
// Array of routing tables for differently distanced nodes
providers
*
providers
.
ProviderManager
birth
time
.
Time
// When this peer started up
birth
time
.
Time
// When this peer started up
Validator
record
.
Validator
// record validator funcs
Selector
record
.
Selector
// record selection funcs
...
...
dht_test.go
View file @
8bac9264
...
...
@@ -15,10 +15,11 @@ import (
ds
"github.com/ipfs/go-datastore"
dssync
"github.com/ipfs/go-datastore/sync"
u
"github.com/ipfs/go-ipfs-util"
netutil
"github.com/libp2p/go-libp2p-netutil"
peer
"github.com/libp2p/go-libp2p-peer"
pstore
"github.com/libp2p/go-libp2p-peerstore"
record
"github.com/libp2p/go-libp2p-record"
netutil
"github.com/libp2p/go-libp2p/p2p/
te
st/
util
"
bhost
"github.com/libp2p/go-libp2p/p2p/
ho
st/
basic
"
ci
"github.com/libp2p/go-testutil/ci"
travisci
"github.com/libp2p/go-testutil/ci/travis"
ma
"github.com/multiformats/go-multiaddr"
...
...
@@ -40,7 +41,7 @@ func init() {
}
func
setupDHT
(
ctx
context
.
Context
,
t
*
testing
.
T
,
client
bool
)
*
IpfsDHT
{
h
:=
netutil
.
Gen
Host
Swarm
(
t
,
ctx
)
h
:=
bhost
.
New
(
netutil
.
GenSwarm
Network
(
t
,
ctx
)
)
dss
:=
dssync
.
MutexWrap
(
ds
.
NewMapDatastore
())
var
d
*
IpfsDHT
...
...
package.json
View file @
8bac9264
...
...
@@ -66,9 +66,9 @@
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
b1DA2A9LS2wR4FFweB4uEDomFsdmnw1VLawLE1yQzudj
"
,
"hash"
:
"Qm
ZvZSVtvxak4dcTkhsQhqd1SQ6rg5UzaSTu62WfWKjj93
"
,
"name"
:
"base32"
,
"version"
:
"0.0.
0
"
"version"
:
"0.0.
1
"
},
{
"author"
:
"whyrusleeping"
,
...
...
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