mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
(trivial) fix getbalance
This commit is contained in:
parent
b81feb6550
commit
28b1569f28
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class Commands:
|
|||
def getbalance(self):
|
||||
"""Return the balance of your wallet. """
|
||||
c, u, x = self.wallet.get_balance()
|
||||
l = self.lnworker.get_balance()
|
||||
l = self.lnworker.get_balance() if self.lnworker else None
|
||||
out = {"confirmed": str(Decimal(c)/COIN)}
|
||||
if u:
|
||||
out["unconfirmed"] = str(Decimal(u)/COIN)
|
||||
|
|
Loading…
Add table
Reference in a new issue