Unspendable TXO Finder
维护者通常 1 天内回复
@ddustin 已经在做这个了。
开始于 2026年5月13日。
评估
这个 Issue 还没有评估数据。
描述
The problem:
UTXOs can become unspendable TXOs. When they do, multiple systems in CLN remain in pending states that can confuse users.
This problem is particularly exasperated when users have lots of channels in many states as seen in #9102 and #9112
The solution:
A system that collects all inputs on SIGHASH_ALL tx's we care about (channel opens, splices, wallet activity) and monitors the chain for their inputs being spent. After some spending depth (100?) we move the corresponding tx state into a new NOT_POSSIBLE state. A state of this kind would need to exist for wallet UTXOs, channels, and inflights.
Then, when displaying user balances, we exclude the NOT_POSSIBLE items.
Importantly we should never delete these and if possible reorgs should move the items back into their old states.
- Make system to track all inputs of wallet txs
- When the txs confirm + some depth (100?), stop tracking them
- Improve system to add channel open inflights
- Improve system to add channel splice inflights
- Add NOT_POSSIBLE state to wallet UTXOs
- Hide NOT_POSSIBLE state UTXOs from user RPCs that show funds
- Ignore NOT_POSSIBLE state UTXOs from all sources that acquire funds (
utxopsbt,addpsbtinput,fundpsbt, etc)
- Channel opens where the funding tx has become NOT_POSSIBLE
- Force-close the channel
- Channel splices where the inflight has become NOT_POSSIBLE
- These must continue to be processed as per the spec, so channel stays in AWAITING_SPLICE
- Show the inflight as NOT_POSSIBLE in the user RPC
Fixes #9102
Fixes #9112
See https://github.com/ksedgwic/clboss/issues/312 for an example
- 主要语言
- C
- 星标
- 3.1k
- 派生
- 1k
- 平均合并
- 4 天 4 小时
- 30 天内合并 PR
- 27
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ElementsProject/lightning 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
ElementsProject/lightning#9634 ·
维护者通常 1 天内回复
-
plugins/recover: missing comma in nodes_for_gossip concatenates two bootstrap addresses into invalid address可能已有人在做 @bhuvan-somisetty 于 3 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
ElementsProject/lightning#9630 ·
维护者通常 1 天内回复
-
common/json_parse: json_to_bitcoin_amount fails to detect overflow and accepts negative/empty inputs可能已有人在做 @bhuvan-somisetty 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
ElementsProject/lightning#9617 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
ElementsProject/lightning#9616 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/lightning#9593 ·
维护者通常 1 天内回复
查看 ElementsProject/lightning 的全部 Issue
相似的 Issue
-
mewencode: base256[] and base128[] are indexed out of bounds by a non-ASCII octet可能已有人在做 @kazu-yamamoto 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
kazu-yamamoto/Mew#276 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
area:gates area:gfx found-by:critic kind:gate-defect
难度 2/5 1-3 小时 新手友好度 78/100
InauguralSystems/EigenScript#1825 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
gbdev/homebrewhub-submit#20 ·