From b4e86590066592f5777ffd7d4eb3d1e15c9cb147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 7 Dec 2022 15:57:22 +0100 Subject: [PATCH] fix default value for reserve fee format --- lnbits/settings.py | 2 +- tests/extensions/bleskomat/test_lnurl_api.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/settings.py b/lnbits/settings.py index 4fd3f9716..58f429671 100644 --- a/lnbits/settings.py +++ b/lnbits/settings.py @@ -82,7 +82,7 @@ class Settings(BaseSettings): lnbits_data_folder: str = Field(default="./data") lnbits_database_url: str = Field(default=None) lnbits_force_https: bool = Field(default=False) - lnbits_reserve_fee_min: int = Field(default=4000) + lnbits_reserve_fee_min: int = Field(default=2000) lnbits_reserve_fee_percent: float = Field(default=1.0) lnbits_service_fee: float = Field(default=0) lnbits_hide_api: bool = Field(default=False) diff --git a/tests/extensions/bleskomat/test_lnurl_api.py b/tests/extensions/bleskomat/test_lnurl_api.py index ac41d050c..ec4a26dad 100644 --- a/tests/extensions/bleskomat/test_lnurl_api.py +++ b/tests/extensions/bleskomat/test_lnurl_api.py @@ -9,14 +9,14 @@ from lnbits.extensions.bleskomat.helpers import ( generate_bleskomat_lnurl_signature, query_to_signing_payload, ) -from lnbits.settings import settings, get_wallet_class +from lnbits.settings import get_wallet_class, settings from tests.conftest import client - from tests.extensions.bleskomat.conftest import bleskomat, lnurl from tests.helpers import credit_wallet, is_regtest WALLET = get_wallet_class() + @pytest.mark.asyncio async def test_bleskomat_lnurl_api_missing_secret(client): response = await client.get("/bleskomat/u") @@ -141,4 +141,4 @@ async def test_bleskomat_lnurl_api_action_success(client, lnurl): bleskomat_lnurl = await get_bleskomat_lnurl(secret) assert bleskomat_lnurl, not None assert bleskomat_lnurl.has_uses_remaining() == False - WALLET.pay_invoice.assert_called_once_with(pr, 4000) + WALLET.pay_invoice.assert_called_once_with(pr, 2000)