aboutsummaryrefslogtreecommitdiff
path: root/src/Channel.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-21 23:58:36 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-21 23:58:39 +0200
commit7edd041e80897dafd583860e75e9443171997e5e (patch)
treed2976e215c3564544d2dd438dbf5aeee9007c861 /src/Channel.cpp
parentc47ec545d87e622aa950e653e4f91721d79bb049 (diff)
Set channel name when creating it, fetch new data from newest to oldest
Diffstat (limited to 'src/Channel.cpp')
-rw-r--r--src/Channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Channel.cpp b/src/Channel.cpp
index 5015975..adcb9be 100644
--- a/src/Channel.cpp
+++ b/src/Channel.cpp
@@ -26,7 +26,7 @@ namespace dchat
if(database)
{
- database->seed(databaseNodeInfo);
+ database->seed(databaseNodeInfo, odhtdb::DatabaseFetchOrder::NEWEST_FIRST);
pingKey = odhtdb::DhtKey(*databaseNodeInfo.getRequestHash()).getPingKey();
// TODO: Ban peers that spam this key (take in account that creator of packets can be forged)