aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-21 01:54:48 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit84d2aa195d93a5161dceb760d5a7a5ebf458dd81 (patch)
treecdc83774823b437970cc7d14083745530274e010
parentbb0e933b70b78a6eab64078c1d54c8aa78bdd487 (diff)
more debug
-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)