refactor for transport changes

Also, make the libp2p constructor fully useful. There should now be no need to
manually construct a swarm/host.
This commit is contained in:
Steven Allen
2018-03-09 17:56:02 -08:00
parent 4b33a80057
commit 41c6834850
28 changed files with 1336 additions and 512 deletions

View File

@@ -49,7 +49,7 @@ func makeBasicHost(listenPort int, secio bool, randseed int64) (host.Host, error
}
if !secio {
opts = append(opts, libp2p.NoEncryption())
opts = append(opts, libp2p.NoSecurity)
}
basicHost, err := libp2p.New(context.Background(), opts...)