Consider adding an extra monitor update upon ChannelManager::funding_transaction_signed

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
backend, blockchain

Hướng nghiên cứu

The failure is a crash after ChannelManager::funding_transaction_signed without persisting ChannelManager, then aborting a splice while the peer has already sent tx_signatures. Start from funding_transaction_signed and Event::FundingTransactionReadyForSigning, and from how ChannelMonitor is updated relative to ChannelManager. Done means an extra monitor update so canceling the splice does not force-close once manager/monitor desync is no longer itself a force-close. This needs Lightning channel and persistence knowledge; the issue is 250 days quiet.

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

Mô tả

@TheBlueMatt pointed out in #4336 a case where we end up with a force close when canceling a splice:

  1. tx_complete is exchanged
  2. Node 1 handles Event::FundingTransactionReadyForSigning, calls funding_transaction_signed, and sends its commitment_signed
  3. Node 2 processes it, and sends its own commitment_signed and tx_signatures
  4. Node 1 crashes without persisting the latest ChannelManager, and needs to handle Event::FundingTransactionReadyForSigning again
  5. Node 1 chooses to cancel the splice this time around and sends tx_abort
  6. Node 2 has already committed to the funding transaction via their tx_signatures, so they can't tx_abort back and force closes instead

Note that that is only worth fixing once we no longer force close due to a desync between the ChannelManager and ChannelMonitor persisted state.

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.