Detect erased notes for a network account
- Vorherrschende Sprache
- Rust
- Sterne
- 78
- Forks
- 129
- Ø Merge
- 4 T. 14 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
Erased notes are not marked as consumed unless they are already present in the store. When the sync detects an erased note (created and consumed in the same batch), it transitions the existing input record to consumed, but if the client never had an input (or output) record for that note, the sync has no way to surface the consumption.
A posible fix would be to add the ability to create input note records from the note header provided by the transaction sync, instead of requiring the full note details. This was initially implemented on https://github.com/0xMiden/miden-client/pull/2090 but discarded to avoid breaking changes for the patch release.
Related: https://github.com/0xMiden/miden-client/issues/1971
Beitragsleitfaden
Rechercherichtung
Betrachten Sie die Synchronisierungslogik für die Behandlung gelöschter Notizen, insbesondere wo Eingabedatensätze erstellt und in den Status 'verbraucht' überführt werden. Überprüfen Sie den verworfenen PR #2090 für den Kontext zur Erstellung von Eingabenotizdatensätzen aus Notizen-Headern. Verstehen Sie den Notizen-Lebenszyklus und wie der Verbrauch angezeigt wird, wenn einem Client frühere Datensätze fehlen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- blockchain
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100