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

Failure to reject `dust_limit_satoshis` below 354 sat

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

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

@Mohil-Ahuja がすでに取り組んでいます。

2026年10月6日 から。

  • #9604 @Mohil-Ahuja による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
c
領域
networking

調査の方向性

まず、v1 funding protocol 中に openingd と dualopend で peer の dust_limit_satoshis がどのように扱われるかを追跡します。その扱いを、issue にリンクされている BOLT 2 の要件と比較し、既存のプロトコルカバレッジまたは fuzzing のセットアップを使って動作を検証します。両方の影響を受けるパスで 354 sat 未満の peer 値が拒否されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

BOLT 2 requires the receiver of open_channel to fail the channel when dust_limit_satoshis < 354. CLN has no such bounds check on the peer's dust limit, and a peer can open a channel with a dust limit as low as 1 sat.

Impact

Both openingd and dualopend are affected. The immediate effect is that the peer's commitment transactions can end up being non-standard (containing dust outputs) and will be rejected from the mempool. This is very bad for the peer but only becomes an issue for CLN if it needs the peer to force close for some reason (e.g., data loss recovery). Other than that, this is purely a spec-compliance issue.

Discovery

This bug was found while fuzzing the v1 funding protocol with smite.

主要言語
C
スター
3.1k
フォーク
1k
平均マージ
3日 10時間
マージ済み PR(30日)
40

環境構築

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

はじめの一歩

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

ElementsProject/lightning のほかの issue

ElementsProject/lightning の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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