aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)