URI: 
       tfix channel backups with old "cryptography" module - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9fa666f1792b82bdd93d01752d1912076541f1f3
   DIR parent db063517ec17be8f9de758cffac9258ddf2a8d87
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Thu,  2 Jul 2020 11:07:10 +0200
       
       fix channel backups with old "cryptography" module
       
       closes #6314
       
       Diffstat:
         M electrum/lnutil.py                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnutil.py b/electrum/lnutil.py
       t@@ -190,7 +190,7 @@ class ChannelBackupStorage(StoredObject):
                chan_id, _ = channel_id_from_funding_tx(self.funding_txid, self.funding_index)
                return chan_id
        
       -    def to_bytes(self):
       +    def to_bytes(self) -> bytes:
                vds = BCDataStream()
                vds.write_int16(CHANNEL_BACKUP_VERSION)
                vds.write_boolean(self.is_initiator)
       t@@ -206,7 +206,7 @@ class ChannelBackupStorage(StoredObject):
                vds.write_int16(self.remote_delay)
                vds.write_string(self.host)
                vds.write_int16(self.port)
       -        return vds.input
       +        return bytes(vds.input)
        
            @staticmethod
            def from_bytes(s):