fixed makefile
This commit is contained in:
@@ -16,7 +16,10 @@
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
#include "nostr_core_lib/nostr_core/nostr_core.h"
|
||||
#include "nostr_core_lib/nostr_core/nostr_common.h" // Common definitions and init/cleanup
|
||||
#include "nostr_core_lib/nostr_core/nip001.h" // Basic protocol functions
|
||||
#include "nostr_core_lib/nostr_core/nip013.h" // Proof-of-work functions
|
||||
#include "nostr_core_lib/nostr_core/nip019.h" // Bech32 decoding for nsec
|
||||
#include "nostr_core_lib/cjson/cJSON.h"
|
||||
|
||||
// Constants
|
||||
@@ -346,7 +349,10 @@ static void* miner_thread(void* arg) {
|
||||
void (*progress_cb)(int, uint64_t, void*) = ctx->verbose_enabled ? verbose_pow_callback : NULL;
|
||||
|
||||
int result = nostr_add_proof_of_work(local_event, ctx->private_key,
|
||||
ctx->target_difficulty, progress_cb, ctx);
|
||||
ctx->target_difficulty, 1000000, // max_attempts
|
||||
1000, // progress_report_interval
|
||||
30, // timestamp_update_interval (seconds)
|
||||
progress_cb, ctx);
|
||||
|
||||
attempts++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user