mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 19:34:18 +01:00
comment
This commit is contained in:
10
mint/app.py
10
mint/app.py
@@ -11,8 +11,12 @@ from secp256k1 import PublicKey
|
|||||||
|
|
||||||
import core.settings as settings
|
import core.settings as settings
|
||||||
from core.base import CheckPayload, MeltPayload, MintPayloads, SplitPayload
|
from core.base import CheckPayload, MeltPayload, MintPayloads, SplitPayload
|
||||||
from core.settings import (CASHU_DIR, MINT_PRIVATE_KEY, MINT_SERVER_HOST,
|
from core.settings import (
|
||||||
MINT_SERVER_PORT)
|
CASHU_DIR,
|
||||||
|
MINT_PRIVATE_KEY,
|
||||||
|
MINT_SERVER_HOST,
|
||||||
|
MINT_SERVER_PORT,
|
||||||
|
)
|
||||||
from lightning import WALLET
|
from lightning import WALLET
|
||||||
from mint.ledger import Ledger
|
from mint.ledger import Ledger
|
||||||
from mint.migrations import m001_initial
|
from mint.migrations import m001_initial
|
||||||
@@ -78,7 +82,7 @@ def create_app(config_object="core.settings") -> FastAPI:
|
|||||||
description="Ecash wallet and mint.",
|
description="Ecash wallet and mint.",
|
||||||
license_info={
|
license_info={
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
"url": "https://raw.githubusercontent.com/callebtc/cashu/main/LICENSE",
|
"url": "https://raw.githubusercontent.com/callebtc/cashu/main/LICENSE.md",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ class LedgerAPI:
|
|||||||
fst_outputs = amount_split(fst_amt)
|
fst_outputs = amount_split(fst_amt)
|
||||||
snd_outputs = amount_split(snd_amt)
|
snd_outputs = amount_split(snd_amt)
|
||||||
|
|
||||||
|
# TODO: Refactor together with the same procedure in self.mint()
|
||||||
secrets = []
|
secrets = []
|
||||||
payloads: MintPayloads = MintPayloads()
|
payloads: MintPayloads = MintPayloads()
|
||||||
for output_amt in fst_outputs + snd_outputs:
|
for output_amt in fst_outputs + snd_outputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user