Skip to content

Commit

Permalink
settings enable mpp corelightning (default false)
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Jun 20, 2024
1 parent d0c7d69 commit 547a8af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cashu/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class CoreLightningRestFundingSource(MintSettings):
mint_corelightning_rest_url: Optional[str] = Field(default=None)
mint_corelightning_rest_macaroon: Optional[str] = Field(default=None)
mint_corelightning_rest_cert: Optional[str] = Field(default=None)
mint_corelightning_enable_mpp: bool = Field(default=False)


class Settings(
Expand Down
1 change: 1 addition & 0 deletions cashu/lightning/corelightningrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class CoreLightningRestWallet(LightningBackend):
supported_units = set([Unit.sat, Unit.msat])
unit = Unit.sat
supports_mpp = settings.mint_corelightning_enable_mpp

def __init__(self, unit: Unit = Unit.sat, **kwargs):
self.assert_unit_supported(unit)
Expand Down

0 comments on commit 547a8af

Please sign in to comment.