diff --git a/fd8000ad015bc2e5e606a67c586cd8718a260a375890b5670b33e632f1d300b9.db b/fd8000ad015bc2e5e606a67c586cd8718a260a375890b5670b33e632f1d300b9.db deleted file mode 100644 index 889c240..0000000 Binary files a/fd8000ad015bc2e5e606a67c586cd8718a260a375890b5670b33e632f1d300b9.db and /dev/null differ diff --git a/relay.pid b/relay.pid index 78d8b0e..7bfb774 100644 --- a/relay.pid +++ b/relay.pid @@ -1 +1 @@ -1187428 +1190476 diff --git a/src/config.c b/src/config.c index 7a14f84..bd7731e 100644 --- a/src/config.c +++ b/src/config.c @@ -33,7 +33,7 @@ static cJSON* g_pending_config_event = NULL; // UTILITY FUNCTIONS // ================================ -char** find_existing_nrdb_files(void) { +char** find_existing_db_files(void) { DIR *dir; struct dirent *entry; char **files = NULL; @@ -342,7 +342,7 @@ int get_config_bool(const char* key, int default_value) { // ================================ int is_first_time_startup(void) { - char** existing_files = find_existing_nrdb_files(); + char** existing_files = find_existing_db_files(); if (existing_files) { // Free the array for (int i = 0; existing_files[i]; i++) { diff --git a/src/config.h b/src/config.h index c35373e..17ebcaf 100644 --- a/src/config.h +++ b/src/config.h @@ -76,7 +76,7 @@ int apply_configuration_from_event(const cJSON* event); int apply_runtime_config_handlers(const cJSON* old_event, const cJSON* new_event); // Utility functions -char** find_existing_nrdb_files(void); +char** find_existing_db_files(void); char* extract_pubkey_from_filename(const char* filename); #endif /* CONFIG_H */ \ No newline at end of file diff --git a/src/main.c b/src/main.c index 28d70cd..6c51345 100644 --- a/src/main.c +++ b/src/main.c @@ -3251,7 +3251,7 @@ int main(int argc, char* argv[]) { log_info("Existing relay detected"); // Find existing database file - char** existing_files = find_existing_nrdb_files(); + char** existing_files = find_existing_db_files(); if (!existing_files || !existing_files[0]) { log_error("No existing relay database found"); nostr_cleanup();