Added the possibility to request identities to specific peers (simplified changelog from PR~1697)

This commit is contained in:
csoler 2020-01-04 20:34:35 +01:00
parent 358aa1e0ab
commit e5d8600f25
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 164 additions and 149 deletions

View file

@ -511,9 +511,13 @@ struct RsIdentity : RsGxsIfaceHelper
* @brief request details of a not yet known identity to the network
* @jsonapi{development}
* @param[in] id id of the identity to request
* @param[in] peers optional list of the peers to ask for the key, if empty
* all online peers are asked.
* @return false on error, true otherwise
*/
virtual bool requestIdentity(const RsGxsId& id) = 0;
virtual bool requestIdentity(
const RsGxsId& id,
const std::vector<RsPeerId>& peers = std::vector<RsPeerId>() ) = 0;
/// default base URL used for indentity links @see exportIdentityLink
static const std::string DEFAULT_IDENTITY_BASE_URL;