This commit is contained in:
callebtc
2024-11-06 18:45:34 +01:00
committed by GitHub
parent d8a90d4c80
commit 91976634a1

View File

@@ -8,8 +8,8 @@ from typing import AsyncGenerator, Dict, List, Optional
from bolt11 import (
Bolt11,
Feature,
FeatureState,
Features,
FeatureState,
MilliSatoshi,
TagChar,
Tags,
@@ -93,7 +93,12 @@ class FakeWallet(LightningBackend):
) -> InvoiceResponse:
self.assert_unit_supported(amount.unit)
tags = Tags()
tags.add(TagChar.features, Features.from_feature_list({Feature.payment_secret: FeatureState.supported}))
tags.add(
TagChar.features,
Features.from_feature_list(
{Feature.payment_secret: FeatureState.supported}
),
)
if description_hash:
tags.add(TagChar.description_hash, description_hash.hex())