Corrected enode format for Raft

This commit is contained in:
vsmk98 2018-10-23 15:00:57 +00:00
parent 6ee681156a
commit 4dc1f3376b
1 changed files with 1 additions and 0 deletions

View File

@ -339,6 +339,7 @@ func disconnectNode (stack *node.Node, enodeId, consensusEngine string){
}
// helper function to format EnodeId
// This will format the EnodeId and return
func formatEnodeId( enodeId , ipAddrPort, discPort, raftPort, consensusEngine string) string {
newEnodeId := "enode://" + enodeId + "@" + ipAddrPort + "?discPort=" + discPort
if consensusEngine == RAFT {