Skip to content
Snippets Groups Projects
Commit 1523a16e authored by Josh Brooks's avatar Josh Brooks
Browse files

Change interconnect service to run on a different port for tests

parent 871d560e
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,14 @@ func StartNode(id *id.ID, localServer string, handler Handler,
return
}
newPort, err := strconv.Atoi(port)
newPort++
interconnect.StartCMixInterconnect(id, string(newPort), handler, certPEMblock, keyPEMblock)
if err != nil {
jww.WARN.Printf("Unable to start consensus node: Unparseable port: %v", err)
return
}
newPort = newPort + 1
interconnectPort := strconv.Itoa(newPort)
interconnect.StartCMixInterconnect(id, interconnectPort, handler, certPEMblock, keyPEMblock)
}()
go func() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment