limit on events that can be processed by a sync

This commit is contained in:
Doug Hoyte
2023-07-20 17:45:00 -04:00
parent 78033bf03b
commit 0d21dc3255
6 changed files with 28 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void RelayServer::ingesterProcessNegentropy(lmdb::txn &txn, Decompressor &decomp
if (arr.get_array().size() < 5) throw herr("negentropy query missing elements");
NostrFilterGroup filter;
auto maxFilterLimit = MAX_U64;
auto maxFilterLimit = cfg().relay__negentropy__maxSyncEvents + 1;
if (arr.at(2).is_string()) {
auto ev = lookupEventById(txn, from_hex(arr.at(2).get_string()));