From a5ac96b17e2556d17224fd9fca817a8ac85d4a4e Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Wed, 28 Apr 2021 09:32:29 -0700
Subject: [PATCH] added prints for debugging

---
 network/follow.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/network/follow.go b/network/follow.go
index a45657c2d..bbe68f991 100644
--- a/network/follow.go
+++ b/network/follow.go
@@ -69,19 +69,19 @@ func (m *manager) followNetwork(report interfaces.ClientErrorReport, quitCh <-ch
 
 // executes each iteration of the follower
 func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source, comms followNetworkComms) {
-
+	jww.FATAL.Println("A")
 	//get the identity we will poll for
 	identity, err := m.Session.Reception().GetIdentity(rng)
 	if err != nil {
 		jww.FATAL.Panicf("Failed to get an identity, this should be "+
 			"impossible: %+v", err)
 	}
-
+	jww.FATAL.Println("B")
 	atomic.AddUint64(m.tracker, 1)
-
+	jww.FATAL.Println("C")
 	// Get client version for poll
 	version := m.Session.GetClientVersion()
-
+	jww.FATAL.Println("D")
 	// Poll network updates
 	pollReq := pb.GatewayPoll{
 		Partial: &pb.NDFHash{
@@ -93,7 +93,7 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
 		EndTimestamp:   identity.EndRequest.UnixNano(),
 		ClientVersion:  []byte(version.String()),
 	}
-
+	jww.FATAL.Println("E")
 	result, err := m.GetSender().SendToAny(func(host *connect.Host) (interface{}, error) {
 		jww.DEBUG.Printf("Executing poll for %v(%s) range: %s-%s(%s) from %s",
 			identity.EphId.Int64(), identity.Source, identity.StartRequest,
@@ -114,6 +114,7 @@ func (m *manager) follow(report interfaces.ClientErrorReport, rng csprng.Source,
 	if err != nil {
 		return
 	}
+	jww.FATAL.Println("F")
 	pollResp := result.(*pb.GatewayPollResponse)
 
 	// ---- Process Network State Update Data ----
-- 
GitLab