`PaymentPurpose` in `Event::PaymentClaimed` missing preimage when using custom `PaymentHash`
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 28/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- rust
- Domínio
- blockchain, payments
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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().
- Linguagem predominante
- Rust
- Estrelas
- 1.4k
- Forks
- 482
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de lightningdevkit/rust-lightning
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
lightningdevkit/rust-lightning#4767 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
lightningdevkit/rust-lightning#1849 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
lightningdevkit/rust-lightning#4764 · 3 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 22/100
lightningdevkit/rust-lightning#4757 · 1 comentário ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 28/100
lightningdevkit/rust-lightning#4739 ·
Todas as issues de lightningdevkit/rust-lightning
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
autofixer: follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tursodatabase/turso#12531 ·
Mantenedores costumam responder em até 1 dia
-
bug help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#4292 ·
Mantenedores costumam responder em até 1 dia
-
CHANGELOG.md out of dateAbertaIssue-Bug Need-Review
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
PowerShell/DSC#1832 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Tripstack-Corp/spyc#1352 ·
Mantenedores costumam responder em até 1 dia