Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Channel stuck in CLOSINGD_COMPLETE if funding never confirms

未关闭
#9,102 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
c

调研方向

从 reproducer #9103 开始,跟踪 funding 交易始终未确认时 CLOSINGD_COMPLETE 周围的通道状态转换。以本报告中的具体通道状态和交易为案例,比较通向 FUNDING_SPEND_SEEN 和 ONCHAIN 的路径。完成的标准是受影响的通道不再无限期停留在 CLOSINGD_COMPLETE,并达到适当的 cleanup 结果。

由索引模型根据 Issue 内容生成。

描述

When a mutual close negotiation completes on a channel whose funding
tx never confirmed, the channel state is stuck. The signed close tx
is permanently invalid — its input is a 2-of-2 funding output that
does not exist on chain — so the state machine has no path from
CLOSINGD_COMPLETE to FUNDING_SPEND_SEEN / ONCHAIN. The channel
sits indefinitely with no cleanup.

Similar to #9112

Concrete instances

More details about the following channels can be found in clboss
issue #312
. @ksedgwic
operates one node; the issue reporter operates the other.

Channel A
  • channel_id: 98f1632d48f0d94d86161a8b4745a97d34c72beb3a6f1db4050210d18aae1e6e
  • funding_txid: 6f1eae8ad1100205b41d6f3aeb2bc7347da945478b1a16864dd9f0482d63f198 — never confirmed on chain
  • close tx (signed, in DB on both sides): 92ce9629985b686b1b9b433b78561fe33d188c71c1131d100798bb24354fe57d — never broadcast; 404 on every explorer
  • opener: counterparty; closer: us
  • created 2026-01-31; reached CLOSINGD_COMPLETE 2026-02-24
  • still in CLOSINGD_COMPLETE on both sides as of 2026-04-30
Channel B
  • channel_id: 264d24bdade7908c31e4d8338368d321c08f4b50fbaf92761da239302ac2cf45
  • funding_txid: 45cfc22a3039a21d7692affb504b8fc021d3688333d8e4318c90e7adbd244d26 — never confirmed
  • close tx (signed, in DB on both sides): d00300b5acb9b7105d2e11d176a1bee5cf05db8e38b6edc6cd8224ff226665f8 — never broadcast
  • opener: counterparty; closer: us
  • created 2026-02-28; reached CLOSINGD_COMPLETE 2026-03-11
  • still in CLOSINGD_COMPLETE on both sides as of 2026-04-30

Reproducer

Reproduced by #9103

主要语言
C
星标
3.1k
派生
1k
平均合并
4 天 2 小时
30 天内合并 PR
45

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ElementsProject/lightning 的其他 Issue

查看 ElementsProject/lightning 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。