Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Track armed static address HTLCs after aborted swaps

オープン
#1,171 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@hieblmi がすでに取り組んでいます。

2026年7月9日 から。

評価

この issue はまだ評価されていません。

説明

Static address loop-ins can leave the client with a durable safety obligation once it signs and hands HTLC transaction signatures to the server. Even if the client later aborts the swap, the server may still be able to publish one of those HTLC transactions until the selected deposit set is otherwise spent.

We should add a dedicated HTLC transaction monitor for aborted/static loop-in swaps where the client handed out, or may have handed out, HTLC signatures.

Expected behavior:

  • Persist/register a swap as "armed" before or when HTLC signatures are handed to the server. This should cover ambiguous handoff failures where the server may have received signatures but the client did not receive a successful response.
  • On startup, restore all armed HTLC monitors.
  • For each armed swap, monitor the signed HTLC transaction/script for publication.
  • If the HTLC confirms, keep the swap/deposits on the timeout-sweep path until the timeout path is swept.
  • If any selected deposit is spent before the HTLC transaction is observed, stop the monitor for that armed HTLC because the all-input signed HTLC transaction can no longer be published.
  • Disarm the monitor once the swap reaches a final safe state, such as successful completion, confirmed timeout sweep, or provable invalidation by deposit spend.

This should remove the need for each abort path to reason separately about whether the server still holds usable HTLC signatures.

主要言語
Go
スター
593
フォーク
137
平均マージ
4日 18時間
マージ済み PR(30日)
20

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lightninglabs/loop のほかの issue

lightninglabs/loop の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。