Skip to content
GitLab
Menu
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
d4b42f8e
Commit
d4b42f8e
authored
Nov 15, 2015
by
Jeromy
Browse files
fixes for sha3
parent
8f79df77
Changes
127
Hide whitespace changes
Inline
Side-by-side
p2p/net/swarm/addr/addr_test.go
View file @
d4b42f8e
...
...
@@ -3,8 +3,8 @@ package addrutil
import
(
"testing"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
net
"Qm
anZCL6SXRfafiUEMCBLq2QR171uQSdXQ8YAdHXLd8Cwr
/go-multiaddr
-net
"
ma
net
"Qm
U5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q
/go-multiaddr
-net
"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
func
newMultiaddr
(
t
*
testing
.
T
,
s
string
)
ma
.
Multiaddr
{
...
...
p2p/net/swarm/dial_test.go
View file @
d4b42f8e
...
...
@@ -13,8 +13,8 @@ import (
testutil
"util/testutil"
ci
"util/testutil/ci"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
net
"Qm
anZCL6SXRfafiUEMCBLq2QR171uQSdXQ8YAdHXLd8Cwr
/go-multiaddr
-net
"
ma
net
"Qm
U5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q
/go-multiaddr
-net
"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/peers_test.go
View file @
d4b42f8e
...
...
@@ -5,7 +5,7 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/simul_test.go
View file @
d4b42f8e
...
...
@@ -9,7 +9,7 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
ci
"util/testutil/ci"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm.go
View file @
d4b42f8e
...
...
@@ -16,8 +16,8 @@ import (
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
mafilter
"Qm
VdADza4QFVAR9xqAxRQjt9vTZJ6UrVLgBstKua1Xg7he
/multiaddr-filter"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
mafilter
"Qm
YWqTn1i8yv9QRDzGPJ2yRudKzYCaC5Aqasbm8vwaG92E
/multiaddr-filter"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
pst
"github.com/jbenet/go-stream-muxer"
psmss
"github.com/jbenet/go-stream-muxer/multistream"
...
...
p2p/net/swarm/swarm_addr.go
View file @
d4b42f8e
...
...
@@ -4,7 +4,7 @@ import (
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
// ListenAddresses returns a list of addresses at which this swarm listens.
...
...
p2p/net/swarm/swarm_addr_test.go
View file @
d4b42f8e
...
...
@@ -8,7 +8,7 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
testutil
"util/testutil"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm_conn.go
View file @
d4b42f8e
...
...
@@ -8,7 +8,7 @@ import (
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm_dial.go
View file @
d4b42f8e
...
...
@@ -8,13 +8,13 @@ import (
"sync"
"time"
"Qm
anZCL6SXRfafiUEMCBLq2QR171uQSdXQ8YAdHXLd8Cwr
/go-multiaddr-net"
"Qm
U5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q
/go-multiaddr-net"
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
addrutil
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
lgbl
"util/eventlog/loggables"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm_listen.go
View file @
d4b42f8e
...
...
@@ -9,7 +9,7 @@ import (
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
lgbl
"util/eventlog/loggables"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm_net.go
View file @
d4b42f8e
...
...
@@ -8,7 +8,7 @@ import (
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
inet
"github.com/ipfs/go-libp2p/p2p/net"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
)
...
...
p2p/net/swarm/swarm_notif_test.go
View file @
d4b42f8e
...
...
@@ -4,7 +4,7 @@ import (
"testing"
"time"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
inet
"github.com/ipfs/go-libp2p/p2p/net"
...
...
p2p/net/swarm/swarm_test.go
View file @
d4b42f8e
...
...
@@ -14,7 +14,7 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
testutil
"util/testutil"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
context
"golang.org/x/net/context"
)
...
...
p2p/net/transport/tcp.go
View file @
d4b42f8e
...
...
@@ -6,8 +6,8 @@ import (
"sync"
"time"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
net
"Qm
anZCL6SXRfafiUEMCBLq2QR171uQSdXQ8YAdHXLd8Cwr
/go-multiaddr
-net
"
ma
net
"Qm
U5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q
/go-multiaddr
-net
"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
reuseport
"github.com/jbenet/go-reuseport"
context
"golang.org/x/net/context"
lgbl
"util/eventlog/loggables"
...
...
p2p/net/transport/transport.go
View file @
d4b42f8e
...
...
@@ -4,9 +4,9 @@ import (
"net"
"time"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
ma
"QmaA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF/go-multiaddr"
manet
"QmanZCL6SXRfafiUEMCBLq2QR171uQSdXQ8YAdHXLd8Cwr/go-multiaddr-net"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
)
var
log
=
logging
.
Logger
(
"transport"
)
...
...
p2p/peer/addr/addrsrcs.go
View file @
d4b42f8e
...
...
@@ -2,7 +2,7 @@
package
addr
import
(
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
// AddrSource is a source of addresses. It allows clients to retrieve
...
...
p2p/peer/addr/addrsrcs_test.go
View file @
d4b42f8e
...
...
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
func
newAddrOrFatal
(
t
*
testing
.
T
,
s
string
)
ma
.
Multiaddr
{
...
...
p2p/peer/addr_manager.go
View file @
d4b42f8e
...
...
@@ -4,7 +4,7 @@ import (
"sync"
"time"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
const
(
...
...
p2p/peer/addr_manager_test.go
View file @
d4b42f8e
...
...
@@ -4,7 +4,7 @@ import (
"testing"
"time"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
)
func
IDS
(
t
*
testing
.
T
,
ids
string
)
ID
{
...
...
p2p/peer/peer.go
View file @
d4b42f8e
...
...
@@ -8,7 +8,7 @@ import (
"strings"
b58
"QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58"
ma
"Qm
aA6aDzeHjZiuqBtgYRz8ZXb1qMCoyMHgyDjBEYQniUKF
/go-multiaddr"
ma
"Qm
bWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83
/go-multiaddr"
mh
"QmdeauTdyf38KDQB4Cc4CurPWRRb5pej27NCXPA7kbPTJy/go-multihash"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
...
...
Prev
1
2
3
4
5
6
7
Next
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