iOS: auto-consume of MIDEN notes stops when Delegate Proof Generation is disabled
- Linguagem predominante
- TypeScript
- Estrelas
- 5
- Forks
- 28
- Merge médio
- 16h 40min
- PRs com merge (30d)
- 99
Descrição
## Symptom
On iOS, disabling **Delegate Proof Generation** stops MIDEN notes from being auto-consumed, even though **Auto Consume MIDEN notes** is still enabled. No error is shown; notes just stay pending.
## Steps to reproduce
1. iOS app, Auto Consume MIDEN notes enabled (default).
2. Disable Delegate Proof Generation in General Settings.
3. Receive a MIDEN note.
4. Note is not auto-consumed.
## Expected
Auto-consume should work regardless of the proving mode — with delegation off it should consume via the native local prover.
## Notes
Auto-consume is not intentionally gated on the delegation setting (`Explore.tsx` passes the flag through to `initiateConsumeTransaction`). Suspect the local-proving consume fails on iOS and the auto-consume bounded-retry backoff gate in `initiateConsumeNotesTransaction` (`src/lib/miden/transaction/initiate.ts`, from #215) then silently suppresses further attempts. Not yet reproduced live.
Feedback DB ref: ticket 118. Possibly related: tickets 77 (Android notes unclaimable after failed local-proving consume) and 92 (iOS "nothing to claim" notification).
Guia de contribuição
Direção de pesquisa
Comece examinando a lógica de auto-consumo em `src/lib/miden/transaction/initiate.ts`, especificamente a função `initiateConsumeNotesTransaction` e seu gate de backoff de tentativas limitadas. Veja como o sinalizador de delegação é passado de `Explore.tsx` para `initiateConsumeTransaction`. Teste o fluxo de consumo com prova local no iOS com a delegação desabilitada para ver se ele falha silenciosamente. Verifique os tickets relacionados 77 e 92 para obter contexto sobre problemas semelhantes. Verifique a correção alternando a configuração 'Delegate Proof Generation' e recebendo uma nota MIDEN para confirmar que o auto-consumo funciona.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- ios, react-native, typescript
- Domínio
- blockchain, mobile, mobile-dev
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 65/100