aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/Database.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-15 06:06:02 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit8a030b5e77031c8b3347170d28758097bca1f15e (patch)
tree780631de9700a37e862b4aa8f946a71cd163c633 /include/odhtdb/Database.hpp
parent54f53857279644914e0c2a2aed24060f31ed2575 (diff)
Store known remote nodes and connect to them next time
Diffstat (limited to 'include/odhtdb/Database.hpp')
-rw-r--r--include/odhtdb/Database.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp
index 11a6cd4..5ebe9c5 100644
--- a/include/odhtdb/Database.hpp
+++ b/include/odhtdb/Database.hpp
@@ -187,5 +187,7 @@ namespace odhtdb
std::function<void(const DatabaseAddNodeRequest&)> onAddNodeCallbackFunc;
std::function<void(const DatabaseAddUserRequest&)> onAddUserCallbackFunc;
MapHash<DatabaseSeedInfo> seedInfoMap;
+ std::thread remoteNodesSaveThread;
+ bool shuttingDown;
};
}