From f2055c06dfe622a29fc26dee3fb3972d88237603 Mon Sep 17 00:00:00 2001 From: four Date: Fri, 19 Jul 2019 04:55:55 +0800 Subject: [PATCH] Set tcp port of p2p node by raft peer correctly. (#775) --- raft/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/handler.go b/raft/handler.go index f707c6370..fd22a02cc 100755 --- a/raft/handler.go +++ b/raft/handler.go @@ -656,7 +656,7 @@ func (pm *ProtocolManager) addPeer(address *Address) { } // Add P2P connection: - p2pNode := enode.NewV4(pubKey, address.Ip, 0, int(address.P2pPort), int(address.RaftPort)) + p2pNode := enode.NewV4(pubKey, address.Ip, int(address.P2pPort), 0, int(address.RaftPort)) pm.p2pServer.AddPeer(p2pNode) // Add raft transport connection: