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

plugins/recover: missing comma in nodes_for_gossip concatenates two bootstrap addresses into invalid address

未关闭 适合新手
#9,630 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@bhuvan-somisetty 已经在做这个了。

开始于 2026年10月15日。

  • #9631 来自 @bhuvan-somisetty —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c
领域
networking

调研方向

错误的字面量位于 plugins/recover.c 第 33-44 行附近的 nodes_for_gossip[] 数组中,报告指向第 6 个元素。请检查在 entering_recovery_mode() 构建 connect 请求的位置是否使用了 ARRAY_SIZE(nodes_for_gossip)。完成的标准是:两个地址是数组中独立的条目,数组大小为 10,并且文件仍能编译通过。

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

描述

Issue and Steps to Reproduce

In plugins/recover.c, nodes_for_gossip[] defines the fallback bootstrap nodes to connect to for gossip synchronization when entering emergency recovery without peers.

On line 40, a comma is missing at the end of the string literal:

	"037659a0ac8eb3b8d0a720114efc861d3a940382dcfa1403746b4f8f6b2e8810ba@34.78.139.195" //nicehash-ln1
	"024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605@165.232.168.69", //BLUEIRON-v23.08.1

In C, adjacent string literals without a separating comma are concatenated by the compiler. As a result, the two distinct node addresses are merged into a single corrupted string:
"037659a0ac8eb3b8d0a720114efc861d3a940382dcfa1403746b4f8f6b2e8810ba@34.78.139.195024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605@165.232.168.69"

This causes:

  1. ARRAY_SIZE(nodes_for_gossip) to be 9 instead of 10.
  2. In entering_recovery_mode(), the connect RPC request to this malformed target to fail.
  3. The recovery plugin to fail to connect to either NiceHash or BLUEIRON bootstrap nodes during recovery.
Steps to reproduce

Inspect plugins/recover.c lines 33-44 or verify nodes_for_gossip element 6.

getinfo output

N/A (static array bug in plugins/recover.c)

主要语言
C
星标
3.1k
派生
1k
平均合并
5 天 2 小时
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 摘要。