From b3a75bf999e54663a31179ae1338d5431feb105f Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Mon, 21 May 2018 01:54:48 +0200 Subject: more debug --- src/Database.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/Database.cpp b/src/Database.cpp index 4dbc837..3f5ae2f 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -247,13 +247,19 @@ namespace odhtdb actionGaps[userPublicKey].push_back({ actionGapStart, actionGapRange }); } + if(actionGaps.empty()) + Log::debug("No action gaps received, sending all data"); + // TODO(Performance improvement): Instead of sending several packets, combine them into one databaseStorage.fetchNodeAddDataRaw(*nodeToSeed.getRequestHash(), [this, requestResponseInfoHash, &actionGaps](const DataView rawData, const DataView creatorPublicKey, u64 actionCounter) { bool sendData = false; auto actionGapsIt = actionGaps.find(creatorPublicKey); if(actionGapsIt == actionGaps.end()) + { + Log::debug("No action gap received for user %s, sending data", bin2hex((const char*)creatorPublicKey.data, creatorPublicKey.size).c_str()); sendData = true; + } else { for(const auto &userActionGaps : actionGapsIt->second) -- cgit v1.2.3