fix: Add Breez SDK trampoline payments support (#2905)

* fix: add support for trampoline payments in Breez integration

- Introduced `BREEZ_USE_TRAMPOLINE` configuration in `.env.example`.
- Updated `BreezSdkFundingSource` to include `breez_use_trampoline` setting.
- Modified payment request in `breez.py` to utilize the trampoline setting when sending payments.

* Update .env.example

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>

* Update lnbits/settings.py

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>

* refactor: streamline payment request formatting in Breez integration

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
Tim Heide
2025-01-25 22:21:55 +01:00
committed by GitHub
co-authored by Pavol Rusnak
parent cb5cc1e5e8
commit 8633891485
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -511,6 +511,7 @@ class BreezSdkFundingSource(LNbitsSettings):
breez_greenlight_invite_code: Optional[str] = Field(default=None)
breez_greenlight_device_key: Optional[str] = Field(default=None)
breez_greenlight_device_cert: Optional[str] = Field(default=None)
breez_use_trampoline: bool = Field(default=True)
class BoltzFundingSource(LNbitsSettings):