fix(identity): warn when the Cashu store cannot be read before an identity swap
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 54/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Dart
- スター
- 11
- フォーク
- 9
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MostroP2P/app のほかの issue
-
documentation priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Bug: Button "Share logs" does nothing対応中かも @Luquitasjeffrey が 8 日前に担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
area: rust-core bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
Python example: list a model's scenes and their cameras対応中かも @rudraparmar76 が今日担当しました。 オープンdocumentation good first issue python
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
iamahsanmehmood/openskp#796 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)オープンbug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
crowdin/flutter-sdk#97 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
InlitX/GymMane#529 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信