Skip to content

Commit

Permalink
fix: NUT-15 setting remove mpp boolean (#673)
Browse files Browse the repository at this point in the history
* fix: NUT-15 setting remove mpp boolean

* remove mpp flag
  • Loading branch information
callebtc authored Nov 24, 2024
1 parent 0a230a1 commit 2b233fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion cashu/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def preprocess_deprecated_contact_field(cls, values):
class Nut15MppSupport(BaseModel):
method: str
unit: str
mpp: bool


class GetInfoResponse_deprecated(BaseModel):
Expand Down
8 changes: 1 addition & 7 deletions cashu/mint/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b233fd

Please sign in to comment.