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

Splicing: pass candidate remote funding key to `hsmd_setup_channel`

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

维护者通常 2 天内回复

@Andezion 已经在做这个了。

开始于 2026年9月17日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c
领域
backend

调研方向

跟踪 update_hsmd_with_splice() 及其 hsmd_setup_channel 调用,将当前 channel 的 funding key 与 inflight->remote_funding 进行比较。确认在 splicing 期间传递了 candidate key,然后添加或运行一个回归测试,在该测试中 peer 轮换其 funding key,并验证 signer 收到了 candidate key 以及新的 funding outpoint。

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

描述

While working on VLS splicing integration, I came across what looks like a bug in the signer setup path when the peer rotates its funding key.

CLN correctly stores the candidate key in:

inflight->remote_funding

but update_hsmd_with_splice() still passes the current channel key to hsmd_setup_channel:

&peer->channel->funding_pubkey[REMOTE]

At that point the channel key is still the old funding key; it is only updated after splice_locked.

I suspect this was easy to miss because CLN currently does not rotate its own funding key during splicing, so CLN-to-CLN tests normally see the same key, and native hsmd does not validate the SetupChannel fields. For an external validating signer like VLS, however, this matters because it can receive the new funding outpoint together with the old remote funding key.

The fix seems to be to pass the candidate key instead:

&inflight->remote_funding

and if possible add a regression test where the peer actually rotates its funding key.

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

环境准备

  • 提供 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 摘要。