balance: await wallet.load_proofs() (#254)

This commit is contained in:
callebtc
2023-06-18 15:12:32 +02:00
committed by GitHub
parent 12bc0c23cb
commit c61971b268

View File

@@ -222,6 +222,7 @@ async def invoice(ctx: Context, amount: int, hash: str, split: int):
@coro
async def balance(ctx: Context, verbose):
wallet: Wallet = ctx.obj["WALLET"]
await wallet.load_proofs()
if verbose:
# show balances per keyset
keyset_balances = wallet.balance_per_keyset()