Skip to content
Snippets Groups Projects
Commit b77c94f5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Debugging info

parent 4ee33929
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ func track(session *storage.Session, ourId *id.ID, stop *stoppable.Single) {
protoIds, err := ephemeral.GetIdsByRange(ourId, receptionStore.GetIDSize(),
now, now.Sub(lastCheck))
jww.DEBUG.Printf("Now: %d, LastCheck: %v (%v), Different: %v (%v)",
jww.DEBUG.Printf("Now: %d, LastCheck: %d (%v), Different: %d (%v)",
now.UnixNano(), lastCheck, lastCheck, now.Sub(lastCheck), now.Sub(lastCheck))
jww.DEBUG.Printf("protoIds Count: %d", len(protoIds))
......
......@@ -191,6 +191,8 @@ func (m *manager) follow(rng csprng.Source, comms followNetworkComms) {
//get the range fo filters which are valid for the identity
filtersStart, filtersEnd, outOfBounds := rounds.ValidFilterRange(identity, pollResp.Filters)
jww.INFO.Printf("filtersStart (%d), filtersEnd(%d), oob %v", filtersStart, filtersEnd, outOfBounds)
//check if there are any valid filters returned
if outOfBounds {
return
......
package rounds
import (
jww "github.com/spf13/jwalterweatherman"
bloom "gitlab.com/elixxir/bloomfilter"
"gitlab.com/elixxir/client/interfaces"
"gitlab.com/elixxir/client/storage/reception"
......@@ -49,6 +50,9 @@ func ValidFilterRange(identity reception.IdentityUse, filters *mixmessages.Clien
identityStart := identity.StartValid.UnixNano()
identityEnd := identity.EndValid.UnixNano()
jww.INFO.Printf("firstElementTS: %d, identityStart: %d, identityEnd: %d",
firstElementTS, identityStart, identityEnd)
startIdx = int((identityStart - firstElementTS) / filters.Period)
if startIdx < 0 {
startIdx = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment