Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

tollgate-clientd: burned tokens on rejected payments (no reclaim path)

Aperta
#423 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
payments

Direzione di ricerca

Start with the clientd scenario battery cases S5b and S5c, then trace the cdk-cli send / cashu send and cdk-cli receive / cashu receive entry points named in the issue. Check how daemon state and the router's reseller-mode recovery work before deciding where rejected tokens and notices belong. Done means a rejected token can be reclaimed after its cause is fixed, with coverage for the expired-keyset and fee/min-steps cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Found by the clientd scenario battery (S5b keyset rotation, S5c fee edge); relates to #403 (router-side no-refund path) and #417 (keyset expiry kills balances).

What happened: clientd creates the wallet token (cdk-cli send / cashu send) and only then POSTs it. If the router rejects the payment — expired keyset after rotation, token fully consumed by a mint input fee, below min-steps — the wallet has already deducted the proofs and the rejected token is dropped. Scenario evidence: S5b renewal against an expired keyset and S5c's 1-sat token on a 100ppk mint both burned the token with no session granted.

Proposal: keep the last rejected token (and the router's notice message) in the daemon state dir + a tollgate-clientd reclaim subcommand that feeds it back into the wallet (cdk-cli receive / cashu receive) once the underlying cause is fixed — mirroring what the router's reseller mode does with tokens-to-recover.

Lingua principale
Go
Stelle
12
Fork
14
Merge medio
3g 21h
PR unite (30g)
269

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenTollGate/tollgate-module-basic-go

Tutte le issue di OpenTollGate/tollgate-module-basic-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.