From 13df5e20c9afcf518bf6c4fa064ba681bd29f8e8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 May 2018 02:36:19 +0200 Subject: Add sql debug, fix action counter in request wrong number --- src/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Database.cpp') diff --git a/src/Database.cpp b/src/Database.cpp index 169c066..27caba0 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -412,7 +412,7 @@ namespace odhtdb databaseStorage.fetchNodeUserLatestActionCounter(*nodeToSeed.getRequestHash(), [&userLatestActionCounter](const DataView userPublicKeyRaw, u64 latestActionCounter) { Signature::PublicKey userPublicKey((const char*)userPublicKeyRaw.data, userPublicKeyRaw.size); - userLatestActionCounter[userPublicKey] = std::max(userLatestActionCounter[userPublicKey], latestActionCounter); + userLatestActionCounter[userPublicKey] = std::max(userLatestActionCounter[userPublicKey], latestActionCounter + 1); }); for(auto userLatestActionCounterData : userLatestActionCounter) -- cgit v1.2.3