diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-03 06:41:50 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | b0f18d6ab6ad0682738be4b23d3ddde674fc247d (patch) | |
tree | 42254ae874efb64239af70a49b7b08e09d96d96d /include | |
parent | 31c1b5b9480d7730aba08aed78a4a240268568f4 (diff) |
Temporary remove timestamp check
Diffstat (limited to 'include')
-rw-r--r-- | include/odhtdb/DatabaseStorage.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/odhtdb/DatabaseStorage.hpp b/include/odhtdb/DatabaseStorage.hpp index 9f1a992..11e243a 100644 --- a/include/odhtdb/DatabaseStorage.hpp +++ b/include/odhtdb/DatabaseStorage.hpp @@ -137,6 +137,10 @@ namespace odhtdb // Return false if user public key already exists, otherwise return true bool addUser(const Hash &nodeHash, User *user); + // Increase user action counter, returning the new value. If user has not performed any action yet, then 0 is returned. + // Returns DatabaseStorageException if no node with id @nodeHash exists or if user with public key @userPublicKey doesn't exist in node @nodeHash + //u64 increaseUserActionCounter(const Hash &nodeHash, const Signature::PublicKey &userPublicKey); + // Returns nullptr if no storage with provided hash exists const DatabaseStorageObjectList* getStorage(const Hash &hash) const; |