Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: NUT-15 setting remove mpp boolean #673

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading