aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-21 01:54:48 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-21 01:54:52 +0200
commitb3a75bf999e54663a31179ae1338d5431feb105f (patch)
tree768f976ff4cd0cd725f6b0b5a59a63307e90dd1c /src
parentbb77e7a3098cda95d4cf7350d020cb2879b344ce (diff)
more debug
Diffstat (limited to 'src')
-rw-r--r--src/Database.cpp6
1 files changed, 6 insertions, 0 deletions
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)