Add APIs to prune completed state for LSPS1/LSPS2/LSPS5

未關閉
#4,444 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@tnull 已經在處理了。

開始於 2026年3月24日。

  • #4526 來自 @f3r10 —— 已關閉,未合併

評估

難度
4/5
預估耗時
3-5 天
新手友好度
32/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust

研究方向

This asks for prune APIs (manual and/or time-based) for completed LSPS1/LSPS2/LSPS5 channel-order state that is currently kept forever. Start from the LSPS service modules that persist completed orders and from any existing public API surface for those services. A closed unmerged PR (#4526) already exists, so read that thread before duplicating work. Done means callers can drop historical completed state without breaking live orders, with tests covering prune behavior.

由索引模型根據 Issue 內容生成。

描述

lightning-liquidity

Currently, our LSPS1/2 services keep completed channel orders around indefinitely. While it is a reasonable default to keep track of historical orders, users def. could eventually run into scenarios where they want to prune historical state.

We should expose APIs to do so, either by manual user intervention, or maybe allow them to configure a time interval in which historical data is pruned.

主要語言
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 摘要。