time-stamping newly received GXS ids

This commit is contained in:
csoler 2016-07-16 18:39:36 -04:00
parent 95202d648b
commit 713deac758
2 changed files with 9 additions and 0 deletions

View File

@ -1054,6 +1054,11 @@ bool p3GxsCircles::locked_processLoadingCacheEntry(RsGxsCircleCache& cache)
std::cerr << "Processing External Circle " << cache.mCircleId << std::endl; std::cerr << "Processing External Circle " << cache.mCircleId << std::endl;
#endif #endif
// Do we actually need to retrieve the missing keys for all members of a circle???
// These keys are needed for subscribtion request signature checking. But this is only
// when a subscription msg is posted, which would trigger retrieval of the key anyway
// Maybe this can be made an option of p3GxsCircles, or of rsIdentity.
// need to trigger the searches. // need to trigger the searches.
for(std::map<RsGxsId,RsGxsCircleMembershipStatus>::iterator pit = cache.mMembershipStatus.begin(); pit != cache.mMembershipStatus.end(); ++pit) for(std::map<RsGxsId,RsGxsCircleMembershipStatus>::iterator pit = cache.mMembershipStatus.begin(); pit != cache.mMembershipStatus.end(); ++pit)
{ {

View File

@ -483,6 +483,10 @@ void p3IdService::notifyChanges(std::vector<RsGxsNotify *> &changes)
uint32_t token; uint32_t token;
RsGenExchange::subscribeToGroup(token, *git, true); RsGenExchange::subscribeToGroup(token, *git, true);
// also time_stamp the key that this group represents
std::cerr << "(II) time-stamping new received GXS ID " << *git << std::endl;
timeStampKey(RsGxsId(*git)) ;
} }
} }
} }