chore: code clean-up
This commit is contained in:
parent
9b5a8cf6f4
commit
94aca31c32
1 changed files with 0 additions and 4 deletions
|
|
@ -295,15 +295,11 @@ async def mint_coins(
|
|||
for payload in data.payloads.blinded_messages:
|
||||
amounts.append(payload.amount)
|
||||
B_s.append(PublicKey(bytes.fromhex(payload.B_), raw=True))
|
||||
print("### amounts", amounts)
|
||||
print("### B_s", B_s)
|
||||
|
||||
try:
|
||||
promises = await generate_promises(cashu.prvkey, amounts, B_s)
|
||||
for amount, B_, p in zip(amounts, B_s, promises):
|
||||
await store_promise(amount, B_.serialize().hex(), p.C_, cashu_id)
|
||||
# store_promises(amounts, B_s, C_s, cashu_id)
|
||||
# await store_promise(amount, B_=B_.serialize().hex(), C_=C_.serialize().hex(), cashu_id)
|
||||
return promises
|
||||
except Exception as exc:
|
||||
return CashuError(error=str(exc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue