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

Ouverte
#4,270 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

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

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de lightningdevkit/rust-lightning

Toutes les issues de lightningdevkit/rust-lightning

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.