tollgate-clientd: burned tokens on rejected payments (no reclaim path)
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
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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenTollGate/tollgate-module-basic-go
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1135 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1122 ·
I maintainer di solito rispondono entro 1 giorno
-
changelog: dependency-security sweep missing from [Unreleased] [Amperstrand fork #105 review debt]Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1055 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenTollGate/tollgate-module-basic-go#1027 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1026 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenTollGate/tollgate-module-basic-go
Issue simili
-
Project submission: BivyAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
slavakurilyak/awesome-ai-agents#880 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/openserverless#282 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
agent-butler-finding bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jordansmall/spindrift#6161 ·
I maintainer di solito rispondono entro 1 giorno