From b0cc417bc9289fdd5c98028136e37c6a6ee62944 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Tue, 1 May 2018 14:57:29 +0200 Subject: Update ntp dependency with bug fix, make error messages better --- include/odhtdb/DatabaseStorage.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/odhtdb/DatabaseStorage.hpp b/include/odhtdb/DatabaseStorage.hpp index 9cfe12d..9f1a992 100644 --- a/include/odhtdb/DatabaseStorage.hpp +++ b/include/odhtdb/DatabaseStorage.hpp @@ -165,6 +165,10 @@ namespace odhtdb // Safe to call multiple times. std::vector getLocalNodeUsers(const Signature::KeyPair &keyPair); + // Returns data in node by its id. Doesn't include 'create' requests. + // Returns nullptr if not data with @dataHash exists. + DatabaseStorageObject* getDataById(const Hash &dataHash); + // Returns true and node decryption key if node exists and we have the decryption key, // otherwise return false and OwnedMemory with data set to nullptr std::pair> getNodeDecryptionKey(const Hash &nodeHash); -- cgit v1.2.3