Browse Source

fix channel backups for "not initiator" channels

bool(b'\x00') is True
bip39-recovery
SomberNight 5 years ago
parent
commit
3665f5d3fd
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/lnutil.py

2
electrum/lnutil.py

@ -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(),

Loading…
Cancel
Save