This commit is contained in:
2025-08-09 11:07:11 -04:00
parent ca6b4754f9
commit e137560d64
10 changed files with 395 additions and 135 deletions

View File

@@ -346,9 +346,11 @@ int nostr_add_proof_of_work(cJSON* event, const unsigned char* private_key,
// =============================================================================
// RELAY COMMUNICATION
// =============================================================================
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// RELAYS - SYNCHRONOUS MULTI-RELAY QUERIES AND PUBLISHING
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/**
* Query a relay for a specific event
@@ -361,10 +363,6 @@ int nostr_add_proof_of_work(cJSON* event, const unsigned char* private_key,
cJSON* nostr_query_relay_for_event(const char* relay_url, const char* pubkey_hex, int kind);
// =============================================================================
// SYNCHRONOUS MULTI-RELAY QUERIES AND PUBLISHING
// =============================================================================
// Query mode enum
typedef enum {
RELAY_QUERY_FIRST_RESULT, // Return as soon as first event is found
@@ -448,9 +446,15 @@ publish_result_t* synchronous_publish_event_with_progress(
void* user_data
);
// =============================================================================
// RELAY POOL MANAGEMENT
// =============================================================================
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// RELAYS - ASYNCHRONOUS RELAY POOLS
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Forward declarations for relay pool types
typedef struct nostr_relay_pool nostr_relay_pool_t;