diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-09 17:00:01 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-09 17:00:01 -0700 |
| commit | c9d7845fea15ffe0e09295aedba6389de1bcb59b (patch) | |
| tree | b47a7058705c424f11cfaca2c523d417577bd8b9 /node/Network.cpp | |
| parent | 0b0cda2be4f93449ea490e8313f1f69175a49819 (diff) | |
| download | infinitytier-c9d7845fea15ffe0e09295aedba6389de1bcb59b.tar.gz infinitytier-c9d7845fea15ffe0e09295aedba6389de1bcb59b.zip | |
Minor bug fix and some instrumentation stuff for testing.
Diffstat (limited to 'node/Network.cpp')
| -rw-r--r-- | node/Network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/node/Network.cpp b/node/Network.cpp index e098c1fd..b9a2ca1d 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -676,7 +676,12 @@ void Network::requestConfiguration() const unsigned int rmdSize = rmd.sizeBytes(); outp.append((uint16_t)rmdSize); outp.append((const void *)rmd.data(),rmdSize); - outp.append((_config) ? (uint64_t)_config.revision : (uint64_t)0); + if (_config) { + outp.append((uint64_t)_config.revision); + outp.append((uint64_t)_config.timestamp); + } else { + outp.append((unsigned char)0,16); + } outp.compress(); RR->sw->send(outp,true); |
