aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-01 14:57:29 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit9197a6118d810356263e92cbb48c406f8e3d3a05 (patch)
tree394460d2e84cd4972af745aecf110228168427d1 /include
parent98544090819faf40ff56eca83cd24bad3d386caa (diff)
Update ntp dependency with bug fix, make error messages better
Diffstat (limited to 'include')
-rw-r--r--include/odhtdb/DatabaseStorage.hpp4
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);