Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Splicing: pass candidate remote funding key to `hsmd_setup_channel`

Đang mở
#9,499 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Andezion đang làm issue này rồi.

Từ ngày 17/9/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
backend

Hướng nghiên cứu

Theo dõi update_hsmd_with_splice() và lời gọi hsmd_setup_channel của nó, so sánh funding key của channel hiện tại với inflight->remote_funding. Xác nhận rằng candidate key được truyền trong quá trình splicing, sau đó thêm hoặc chạy một regression test trong đó peer xoay vòng funding key của nó và xác minh rằng signer nhận được candidate key cùng với funding outpoint mới.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
3.1k
Fork
1k
Merge trung bình
4 ngày 4 giờ
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ElementsProject/lightning

Tất cả issue của ElementsProject/lightning

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.