diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
| commit | c2187c87599c60b9c47dd9d01244ce1ffd105fea (patch) | |
| tree | 061667e920472a08f073ab2beb89456c05851cc5 /node/Dictionary.cpp | |
| parent | 56296f96db2ebecc69214de6ef0ca47d7aa77c6e (diff) | |
| download | infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.tar.gz infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.zip | |
(1) distribute default root-topology in new dictionary format, (2) bump peer serialization version to force obsolescence of old supernodes, (3) stop outputting a log message every time we poll for software updates
Diffstat (limited to 'node/Dictionary.cpp')
| -rw-r--r-- | node/Dictionary.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp index 50440e5b..6c47b0ea 100644 --- a/node/Dictionary.cpp +++ b/node/Dictionary.cpp @@ -116,6 +116,14 @@ bool Dictionary::verify(const Identity &id) const } } +uint64_t Dictionary::signatureTimestamp() const +{ + const_iterator ts(find(ZT_DICTIONARY_SIGNATURE_TIMESTAMP)); + if (ts == end()) + return 0; + return Utils::hexStrToU64(ts->second.c_str()); +} + void Dictionary::_mkSigBuf(std::string &buf) const { unsigned long pairs = 0; |
