mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user