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

wallet: offline keyset-fee accessor for the precheck (upstream gonuts API) — follow-up to #525

Aperta
#534 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
api

Direzione di ricerca

Start by reading tollwallet.mintKeysetFees and the loadWalletMints flow, then inspect the upstream gonuts wallet state and its wallet/storage.BoltDB.GetKeysets() accessor. The issue proposes an exported Wallet.MintKeysetFees(mintURL) API and re-pointing the precheck to it; done means the precheck can read cached keyset fees offline and no longer uses the network path.

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

Descrizione

Follow-up to #525 (now bounded in-repo by the precheck budget): the strictly-better long-term fix is reading the cached keyset fees from the wallet's local bolt DB instead of the network — the data is already there (kept warm by loadWalletMints; gonuts' internal feesForProofs uses exactly this in-memory state), and it would make the precheck offline-capable with no budget tuning.

What's missing: gonuts-tollgate exposes no accessor for a mint's keyset state (walletMint.activeKeyset/inactiveKeysets are unexported; wallet/storage.BoltDB.GetKeysets() exists but the wallet's live handle can't be safely re-opened read-only alongside). Needs: an exported Wallet.MintKeysetFees(mintURL) map[string]uint (or equivalent) upstream, then re-point tollwallet.mintKeysetFees at it and drop the network path from the precheck. Also worth revisiting upstream: keyset fetches probably don't want the full 5-attempt retry ladder on the hot payment path (issue #525's candidate 3).

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.