tfix channel backups for "not initiator" channels - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3665f5d3fdaed760134de0032969cbd0ec2607d7 DIR parent 5401b3f72d87f8bd0cef4d3c9fb3e51ec713e64d HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 19 Jun 2020 06:53:45 +0200 fix channel backups for "not initiator" channels bool(b'\x00') is True Diffstat: M electrum/lnutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/lnutil.py b/electrum/lnutil.py t@@ -205,7 +205,7 @@ class ChannelBackupStorage(StoredObject): if version != CHANNEL_BACKUP_VERSION: raise Exception(f"unknown version for channel backup: {version}") return ChannelBackupStorage( - is_initiator = bool(vds.read_bytes(1)), + is_initiator = vds.read_boolean(), privkey = vds.read_bytes(32).hex(), channel_seed = vds.read_bytes(32).hex(), node_id = vds.read_bytes(33).hex(),