From 42fd966d65cd2e9a50672363f2a3167dfa861256 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Mar 2026 09:30:18 -0400 Subject: [PATCH] v0.1.19 - Prevent ignored spent token events from reloading into wallet balance after restart --- README.md | 4 ++-- src/cashu_wallet.c | 4 ++++ src/main.h | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 75c887e..8d90069 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers. -## Current Status — v0.1.18 +## Current Status — v0.1.19 **Active build — this project is barely working. Experiment at your own risk.** -> Last release update: v0.1.18 — Auto-clean spent Cashu proofs in check_proofs, publish deletions, and add spent token events to kind-10000 ignore list +> Last release update: v0.1.19 — Prevent ignored spent token events from reloading into wallet balance after restart - Connects to configured relays with auto-reconnect and relay state transition logging - Publishes configured startup events per relay as each relay becomes connected diff --git a/src/cashu_wallet.c b/src/cashu_wallet.c index 8d81e67..77b19ba 100644 --- a/src/cashu_wallet.c +++ b/src/cashu_wallet.c @@ -680,6 +680,10 @@ int cashu_wallet_load_from_relays(void) { continue; } + if (nostr_block_list_is_event_blocked(id->valuestring)) { + continue; + } + nostr_nip60_token_data_t token; memset(&token, 0, sizeof(token)); if (nostr_nip60_parse_token_event(ev, g_wallet.cfg->keys.private_key, &token) != 0) { diff --git a/src/main.h b/src/main.h index 99ae5e3..769294c 100644 --- a/src/main.h +++ b/src/main.h @@ -12,8 +12,8 @@ // Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros #define DIDACTYL_VERSION_MAJOR 0 #define DIDACTYL_VERSION_MINOR 1 -#define DIDACTYL_VERSION_PATCH 18 -#define DIDACTYL_VERSION "v0.1.18" +#define DIDACTYL_VERSION_PATCH 19 +#define DIDACTYL_VERSION "v0.1.19" // Agent metadata #define DIDACTYL_NAME "Didactyl"