`PaymentPurpose` in `Event::PaymentClaimed` missing preimage when using custom `PaymentHash`

Đang mở
#4,270 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/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
blockchain, payments

Hướng nghiên cứu

The report is about Event::PaymentClaimed after ChannelManager::claim_funds when the BOLT11 invoice used a custom PaymentHash: PaymentPurpose should carry Some(preimage) but stays None. Start from how claim_funds records the preimage and how PaymentClaimed / Bolt11InvoicePayment is built for that path versus LDK-generated hashes. Confirm done when PaymentClaimed includes payment_preimage: Some(preimage) for a custom-hash invoice. The thread is old and silent, so check whether the behavior already changed upstream before coding.

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

Mô tả

Description

When creating a BOLT11 invoice with a custom PaymentHash (instead of letting LDK generate one), the Event::PaymentClaimed event does not contain a PaymentPreimage inside the PaymentPurpose.

After calling ChannelManager::claim_funds() (where the preimage is provided by the application), LDK should then be aware of the preimage.

Expected Behavior

After calling claim_funds(preimage), the subsequent Event::PaymentClaimed should include PaymentPurpose::Bolt11InvoicePayment { payment_preimage: Some(preimage), .. } even when the invoice uses a custom PaymentHash.

Actual Behavior

payment_preimage is always None for Bolt11 payments with custom PaymentHash, even after the preimage has been supplied to LDK via claim_funds().

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.