From 1edfcf97310cf04191f10a1306f17446fb979a34 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 16 Jan 2016 13:41:24 -0500 Subject: [PATCH] do not time stamp banned GXS ids --- libretroshare/src/gxs/rsgxsutil.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/gxs/rsgxsutil.cc b/libretroshare/src/gxs/rsgxsutil.cc index 78e0c39cd..0dfc1b6d1 100644 --- a/libretroshare/src/gxs/rsgxsutil.cc +++ b/libretroshare/src/gxs/rsgxsutil.cc @@ -28,6 +28,7 @@ #include "rsgxsutil.h" #include "retroshare/rsgxsflags.h" #include "retroshare/rspeers.h" +#include "retroshare/rsreputations.h" #include "pqi/pqihash.h" #include "gxs/rsgixs.h" @@ -161,7 +162,8 @@ bool RsGxsIntegrityCheck::check() std::cerr << "TimeStamping group authors' key ID " << grp->metaData->mAuthorId << " in group ID " << grp->grpId << std::endl; #endif - used_gxs_ids.insert(grp->metaData->mAuthorId) ; + if(rsReputations==NULL || !rsReputations->isIdentityBanned(grp->metaData->mAuthorId)) + used_gxs_ids.insert(grp->metaData->mAuthorId) ; } } } @@ -242,7 +244,8 @@ bool RsGxsIntegrityCheck::check() #ifdef GXSUTIL_DEBUG std::cerr << "TimeStamping message authors' key ID " << msg->metaData->mAuthorId << " in message " << msg->msgId << ", group ID " << msg->grpId<< std::endl; #endif - used_gxs_ids.insert(msg->metaData->mAuthorId) ; + if(rsReputations==NULL || !rsReputations->isIdentityBanned(msg->metaData->mAuthorId)) + used_gxs_ids.insert(msg->metaData->mAuthorId) ; } delete msg;