OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add node discovery and status check (#374)
[bytom/vapor.git]
/
p2p
/
test_util.go
diff --git
a/p2p/test_util.go
b/p2p/test_util.go
index
fa5d631
..
fc27e4e
100644
(file)
--- a/
p2p/test_util.go
+++ b/
p2p/test_util.go
@@
-92,7
+92,7
@@
func MakeSwitch(cfg *cfg.Config, testdb dbm.DB, privKey signlib.PrivKey, initSwi
// new switch, add reactors
l, listenAddr := GetListener(cfg.P2P)
cfg.P2P.LANDiscover = false
// new switch, add reactors
l, listenAddr := GetListener(cfg.P2P)
cfg.P2P.LANDiscover = false
- sw, err :=
n
ewSwitch(cfg, new(mockDiscv), nil, l, privKey, listenAddr, 0)
+ sw, err :=
N
ewSwitch(cfg, new(mockDiscv), nil, l, privKey, listenAddr, 0)
if err != nil {
log.Errorf("create switch error: %s", err)
return nil
if err != nil {
log.Errorf("create switch error: %s", err)
return nil