Skip to content

Commit

Permalink
Add FakeWallet invoice features tag for supported payment secret (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcaseria authored Nov 5, 2024
1 parent 0de574e commit 2ad6d83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cashu/lightning/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

from bolt11 import (
Bolt11,
Feature,
FeatureState,
Features,
MilliSatoshi,
TagChar,
Tags,
Expand Down Expand Up @@ -90,6 +93,7 @@ async def create_invoice(
) -> InvoiceResponse:
self.assert_unit_supported(amount.unit)
tags = Tags()
tags.add(TagChar.features, Features.from_feature_list({Feature.payment_secret: FeatureState.supported}))

if description_hash:
tags.add(TagChar.description_hash, description_hash.hex())
Expand Down

0 comments on commit 2ad6d83

Please sign in to comment.