Getting the relay pool up to speed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user