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

Đang mở
#4,444 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

@tnull đang làm issue này rồi.

Từ ngày 24/3/2026.

  • #4526 của @f3r10 — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend, blockchain, payments

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
1.4k
Fork
482
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lightningdevkit/rust-lightning

Tất cả issue của lightningdevkit/rust-lightning

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.