tfix #6103: local config contains remote reserve - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 4d01a550c4802d68783adeff7e8df97f308f189c
DIR parent 1a4d33086b65be364a034d71f449150b08a68521
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 20 Apr 2020 18:48:41 +0200
fix #6103: local config contains remote reserve
Diffstat:
M electrum/commands.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/electrum/commands.py b/electrum/commands.py
t@@ -1032,8 +1032,8 @@ class Commands:
'remote_pubkey': bh2u(chan.node_id),
'local_balance': chan.balance(LOCAL)//1000,
'remote_balance': chan.balance(REMOTE)//1000,
- 'local_reserve': chan.config[LOCAL].reserve_sat,
- 'remote_reserve': chan.config[REMOTE].reserve_sat,
+ 'local_reserve': chan.config[REMOTE].reserve_sat, # their config has our reserve
+ 'remote_reserve': chan.config[LOCAL].reserve_sat,
'local_unsettled_sent': chan.balance_tied_up_in_htlcs_by_direction(LOCAL, direction=SENT) // 1000,
'remote_unsettled_sent': chan.balance_tied_up_in_htlcs_by_direction(REMOTE, direction=SENT) // 1000,
} for channel_id, chan in l