Getting the relay pool up to speed

This commit is contained in:
2025-10-02 11:51:41 -04:00
parent 0d910ca181
commit 0f897ab1b3
14 changed files with 6515 additions and 308 deletions

View File

@@ -10,7 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "../nostr_core/nostr_common.h"
#include "../nostr_core/nostr_core.h"
#include "../cjson/cJSON.h"
@@ -80,7 +80,7 @@ int main() {
const char* filter_json =
"{"
" \"kinds\": [1],"
" \"limit\": 1"
" \"limit\": 4"
"}";
// Alternative filter examples (comment out the one above, uncomment one below):
@@ -133,7 +133,8 @@ int main() {
cJSON** results = synchronous_query_relays_with_progress(
test_relays, relay_count, filter, test_mode,
&result_count, 5, progress_callback, NULL
&result_count, 5, progress_callback, NULL,
1, NULL // nip42_enabled = true, private_key = NULL (no auth)
);
time_t end_time = time(NULL);