[bug] Account is left in `Pending Update` state after `spendAccount` fails to broadcast the new tx
まだ誰も着手していません。
評価
調査の方向性
account/manager.go の spendAccount から始め、リンクされた更新とブロードキャスト失敗の箇所に関連する account の更新を調査します。ブロードキャストが失敗したときに AccountDiff が残され、LND の入力が解放される仕組みを追跡します。失敗した更新がロールバックされ、account が Pending Update 状態のままにならなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
A user deposits new funds in his account calling the DepositAccount rpc method. A new AccountDiff is created and stored (client and server side).
The tx was never broadcasted to the network. The lnd node does not see it in pending txs and the lnd inputs are released. The account diff is not applied to the account because is waiting for confirmations.
Expected behavior
In the spendAccount we should rollback the account update if the broadcast fails which releases the funds in LND.
Actual behavior
The account becomes unusable because of its Pending Updating state.
Workaround
Delete the account diff from the server and make the user go through the recovery account process so it gets in sync with the server with the last state of this account before it became unusable.
- 主要言語
- Go
- スター
- 256
- フォーク
- 53
- 平均マージ
- 20時間 22分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lightninglabs/pool のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
lightninglabs/pool#536 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
lightninglabs/pool#514 · コメント 16 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
lightninglabs/pool#478 · コメント 3 件 ·
-
batch batch execution optimization
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
lightninglabs/pool#456 ·
-
add pool-client initiated pings再び着手できるかも @positiveblue が 1278 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
lightninglabs/pool#455 · 担当者 1 名 ·
lightninglabs/pool の issue をすべて見る
似ている issue
-
cmd/fix, x/tools/go/analysis/passes/modernize: mapsloop moves comments out of the range operand対応中かも @muratmirgun が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Cojekt/LibreDental#258 ·
メンテナーはふだん 1 日以内に返信
-
go good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opensro-dev/opensro#4949 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 3 日以内に返信