feat: add funding_source_max_retries env setting (#2404)

* feat: add `funding_source_max_retries` env setting

* feat: default to zero retries

* feat: exponential retry time increase

* chore: Let's use the same value as the default

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>

* feat: using 0.25 leads to less awkward numbers

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
Vlad Stan
2024-04-11 17:29:25 +01:00
committed by GitHub
co-authored by Pavol Rusnak
parent e9e69d9d17
commit adb8f9bdec
3 changed files with 7 additions and 3 deletions
+1
View File
@@ -377,6 +377,7 @@ class EnvSettings(LNbitsSettings):
log_retention: str = Field(default="3 months")
server_startup_time: int = Field(default=time())
cleanup_wallets_days: int = Field(default=90)
funding_source_max_retries: int = Field(default=4)
@property
def has_default_extension_path(self) -> bool: