add primordial goo tier "hidden mode" (aka toy feature needs more work doesn't do it correctly all the way)

This commit is contained in:
Jeff Becker 2016-06-18 11:10:58 -04:00
parent 004a93a841
commit 93deb37c94
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 27 additions and 4 deletions

View file

@ -67,6 +67,9 @@ namespace data
void PostI2NPMsg (std::shared_ptr<const I2NPMessage> msg);
/** set hidden mode, aka don't publish our RI to netdb and don't explore */
void SetHidden(bool hide);
void Reseed ();
Families& GetFamilies () { return m_Families; };
@ -112,6 +115,9 @@ namespace data
NetDbRequests m_Requests;
std::map<IdentHash, std::pair<std::vector<IdentHash>, uint64_t> > m_LookupResponses; // ident->(closest FFs, timestamp)
/** true if in hidden mode */
bool m_HiddenMode;
};
extern NetDb netdb;