.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user