From fcdda6e24fd6a1bf28dc90506e0991894dceb9a4 Mon Sep 17 00:00:00 2001 From: David Caseria Date: Mon, 12 Aug 2024 15:49:28 -0400 Subject: [PATCH] Add FakeWallet invoice features tag for supported payment secret --- cashu/lightning/fake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cashu/lightning/fake.py b/cashu/lightning/fake.py index 7517bfe3..9afdd5c0 100644 --- a/cashu/lightning/fake.py +++ b/cashu/lightning/fake.py @@ -7,6 +7,9 @@ from bolt11 import ( Bolt11, + Feature, + FeatureState, + Features, MilliSatoshi, TagChar, Tags, @@ -88,6 +91,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())