diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-05-01 14:57:29 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-05-01 14:57:32 +0200 |
commit | b0cc417bc9289fdd5c98028136e37c6a6ee62944 (patch) | |
tree | bb1646b4436d56bc10e103af0c03e157670f32fd /include | |
parent | 8da5ba7f057978b224868028679cbda9e11089ab (diff) |
Update ntp dependency with bug fix, make error messages better
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 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<NodeLocalUser> 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<bool, std::shared_ptr<OwnedMemory>> getNodeDecryptionKey(const Hash &nodeHash); |