From 2b233fd67eeca1feda01046d7fe919f84d7ba112 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 24 Nov 2024 16:55:17 +0100 Subject: [PATCH] fix: NUT-15 setting remove mpp boolean (#673) * fix: NUT-15 setting remove mpp boolean * remove mpp flag --- cashu/core/models.py | 1 - cashu/mint/features.py | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/cashu/core/models.py b/cashu/core/models.py index 77addfa6..ac11377e 100644 --- a/cashu/core/models.py +++ b/cashu/core/models.py @@ -73,7 +73,6 @@ def preprocess_deprecated_contact_field(cls, values): class Nut15MppSupport(BaseModel): method: str unit: str - mpp: bool class GetInfoResponse_deprecated(BaseModel): diff --git a/cashu/mint/features.py b/cashu/mint/features.py index f216de9d..18eef1cb 100644 --- a/cashu/mint/features.py +++ b/cashu/mint/features.py @@ -67,13 +67,7 @@ def mint_features(self) -> Dict[int, Union[List[Any], Dict[str, Any]]]: for method, unit_dict in self.backends.items(): for unit in unit_dict.keys(): if unit_dict[unit].supports_mpp: - mpp_features.append( - { - "method": method.name, - "unit": unit.name, - "mpp": True, - } - ) + mpp_features.append({"method": method.name, "unit": unit.name}) if mpp_features: mint_features[MPP_NUT] = dict(methods=mpp_features)