Don't FC during startup chain relay if we might be able to salvage the channel by connecting to a peer

未关闭
#4,048 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust

调研方向

The issue describes force-close during startup chain replay when a pending outbound HTLC is about to expire, versus waiting to connect to the peer so they can fail the HTLC. No files, tests, or entry points are named. Start by locating startup chain-relay and channel force-close paths around pending HTLCs, then decide when connecting to a peer should delay FC. Done means the node no longer force-closes in that salvageable case, especially for LSP/async mobile sending.

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

描述

If we've been offline for a while and had a pending outbound HTLC, on startup we may replay blocks, notice its gonna expire and FC the channel, but if we had just waited long enough to connect to our peer they may have resolved the HTLC immediately on connection (with a failure, if they haven't FCd yet either). This is a much more important issue for LSP clients doing async sending on a mobile.

主要语言
Rust
星标
1.4k
派生
482
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lightningdevkit/rust-lightning 的其他 Issue

查看 lightningdevkit/rust-lightning 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。