fix(identity): warn when the Cashu store cannot be read before an identity swap
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 54/100
Research direction
Start by tracing api::identity::funds_at_risk, identity_balance_at_risk, and identity_invoices_at_risk to see how Cashu read failures are handled, then inspect _guardedIdentitySwap in account_screen.dart. The issue calls for a risk reason when either Cashu read fails, translations in seven locales, and a warning when fundsAtRisk() errors; done means unreadable stores warn without dropping existing trade risks.
Written by the indexing model from the issue text.
Description
api::identity::funds_at_risk skips the Cashu checks when the identity's proof store cannot be read: identity_balance_at_risk (since C3) and identity_invoices_at_risk (#869) both log the error and add no entry. Separately, _guardedIdentitySwap (account_screen.dart) treats any error from fundsAtRisk() as "no risks".
So an identity can be generated or imported over one whose ecash or open invoices could not be checked, with no warning. The store file outlives the deletion, so the old words still bring both back, but only for a user who kept them.
Proposal:
- one reason, e.g.
FundsAtRiskReason::CashuWalletUnreadable, pushed when either Cashu read fails, keeping the trade risks; - its copy in the seven locales;
- in Dart, an error from
fundsAtRisk()warns ("could not check") instead of passing as empty.
Raised by CodeRabbit on #869.
- Dominant language
- Dart
- Stars
- 11
- Forks
- 9
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MostroP2P/app
-
documentation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
area: ui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area: ui bug priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Bug: Button "Share logs" does nothingPossibly taken @Luquitasjeffrey claimed this 7 days ago. Open
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
area: rust-core bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Python example: list a model's scenes and their camerasPossibly taken @rudraparmar76 claimed this today. Opendocumentation good first issue python
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
iamahsanmehmood/openskp#796 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Openbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crowdin/flutter-sdk#97 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
InlitX/GymMane#529 · 1 comment ·
Maintainers usually reply within 1 day