Skip to content
Snippets Groups Projects
Commit abde012d authored by Xavier Perret's avatar Xavier Perret
Browse files

removed prints

parent 3dbe5a81
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ func CreateConnection(destinationAddress string) net.Conn {
}
func CreateConnectionWithSpecifiedLocalAddress(senderAddress string, destinationAddress string) net.Conn {
fmt.Println("Trying to connect to ", destinationAddress)
dialer := net.Dialer{LocalAddr: &net.TCPAddr{IP: net.ParseIP(senderAddress)}}
conn, err := dialer.Dial("tcp", destinationAddress)
......
......@@ -37,7 +37,6 @@ func SendVoteToNeighbour(config Config, trans Transaction, address string) {
func SendAckToNeighbour(config Config, ack AckTransaction, address string) {
fmt.Println("*******************STARTING TO SEND ACK*******************")
fmt.Println("Trying to connect to ", address)
var ackToSend AckTransaction
ackToSend.Id = ack.Id
ackToSend.AmountOfCorrectNode = ack.AmountOfCorrectNode
......@@ -89,8 +88,6 @@ func SendTransactionToAllNeighbours(config Config, trans Transaction) {
func SendTransactionToNeighbour(config Config, trans Transaction, destinationIp string, destinationPort string) {
fmt.Println()
ipAddr := destinationIp + ":" + destinationPort
fmt.Println("Trying to connect to ", destinationIp, ":", destinationPort)
conn := manage_connection.CreateConnectionWithSpecifiedLocalAddress(config.Address, ipAddr)
mess := Message{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment