mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
fix lnworker.get_balance
This commit is contained in:
parent
b7d93e2e11
commit
f6f5cbee72
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ class LNWorker(PrintError):
|
||||||
|
|
||||||
def get_balance(self):
|
def get_balance(self):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
return Decimal(sum(chan.balance(LOCAL) for chan in self.channels.values()))/1000
|
return Decimal(sum(chan.balance(LOCAL) if chan.get_state() not in ['CLOSED', 'FORCE_CLOSING'] else 0 for chan in self.channels.values()))/1000
|
||||||
|
|
||||||
def list_channels(self):
|
def list_channels(self):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|
Loading…
Add table
Reference in a new issue