`PaymentPurpose` in `Event::PaymentClaimed` missing preimage when using custom `PaymentHash`
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- rust
- Domaine
- blockchain, payments
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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().
- Langage dominant
- Rust
- Étoiles
- 1.4k
- Forks
- 482
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de lightningdevkit/rust-lightning
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
lightningdevkit/rust-lightning#4767 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
lightningdevkit/rust-lightning#1849 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 22/100
lightningdevkit/rust-lightning#4764 · 3 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 22/100
lightningdevkit/rust-lightning#4757 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
lightningdevkit/rust-lightning#4739 ·
Toutes les issues de lightningdevkit/rust-lightning
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 2 jours
-
autofixer: follow-up
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tursodatabase/turso#12531 ·
Les mainteneurs répondent en général sous 1 jour
-
bug help wanted ui
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
userFRM/egui-charts#4292 ·
Les mainteneurs répondent en général sous 1 jour
-
CHANGELOG.md out of dateOuverteIssue-Bug Need-Review
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
PowerShell/DSC#1832 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
Tripstack-Corp/spyc#1352 ·
Les mainteneurs répondent en général sous 1 jour