config: all urls use tcp:// or unix:// prefix

This commit is contained in:
Ethan Buchman
2016-08-10 01:15:59 -04:00
parent c90bde3187
commit bd429f3d4f
6 changed files with 26 additions and 11 deletions

View File

@ -18,7 +18,8 @@ func TestNodeStartStop(t *testing.T) {
// Create & start node
n := NewNode(config, privValidator, GetProxyApp)
l := p2p.NewDefaultListener("tcp", config.GetString("node_laddr"), config.GetBool("skip_upnp"))
protocol, address := ProtocolAndAddress(config.GetString("node_laddr"))
l := p2p.NewDefaultListener(protocol, address, config.GetBool("skip_upnp"))
n.AddListener(l)
n.Start()
log.Notice("Started node", "nodeInfo", n.sw.NodeInfo())