Allow to start wallet API by cashu --daemon (#243)

* Allow to start wallet API by cashu --daemon

* Provide access to wallet name via settings

* Make format

* Use flag is_eager for daemon option

* add setting api_host

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
sihamon
2023-06-08 14:42:37 +02:00
committed by GitHub
parent 5c820f9469
commit 786fbf2856
6 changed files with 37 additions and 13 deletions

View File

@@ -36,7 +36,9 @@ from .responses import (
router: APIRouter = APIRouter()
def create_wallet(url=settings.mint_url, dir=settings.cashu_dir, name="wallet"):
def create_wallet(
url=settings.mint_url, dir=settings.cashu_dir, name=settings.wallet_name
):
return Wallet(url, os.path.join(dir, name), name=name)