mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
minor fix: can_send, can_receive
This commit is contained in:
parent
9a462ac9b5
commit
47d14c579b
1 changed files with 2 additions and 2 deletions
|
@ -1167,11 +1167,11 @@ class LNWallet(LNWorker):
|
|||
|
||||
def can_send(self):
|
||||
with self.lock:
|
||||
return Decimal(max(chan.available_to_spend(LOCAL) if chan.is_open() else 0 for chan in self.channels.values()))/1000
|
||||
return Decimal(max(chan.available_to_spend(LOCAL) if chan.is_open() else 0 for chan in self.channels.values()))/1000 if self.channels else 0
|
||||
|
||||
def can_receive(self):
|
||||
with self.lock:
|
||||
return Decimal(max(chan.available_to_spend(REMOTE) if chan.is_open() else 0 for chan in self.channels.values()))/1000
|
||||
return Decimal(max(chan.available_to_spend(REMOTE) if chan.is_open() else 0 for chan in self.channels.values()))/1000 if self.channels else 0
|
||||
|
||||
async def close_channel(self, chan_id):
|
||||
chan = self.channels[chan_id]
|
||||
|
|
Loading…
Add table
Reference in a new issue