MCPcopy Create free account
hub / github.com/ethstorage/es-node / getNetHost

Function getNetHost

ethstorage/p2p/protocol/sync_test.go:315–320  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

313}
314
315func getNetHost(t *testing.T) host.Host {
316 netw := swarmt.GenSwarm(t)
317 h := bhost.NewBlankHost(netw)
318 t.Cleanup(func() { h.Close() })
319 return h
320}
321
322func connect(t *testing.T, a, b host.Host, as, bs map[common.Address][]uint64) {
323 pinfo := a.Peerstore().PeerInfo(a.ID())

Callers 2

createRemoteHostFunction · 0.85

Calls 2

CleanupMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected