URI: 
       treestablish_channel: do not send second channel_reestablish message if they are ahead (they should know it) - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8688a6530aef48f27c66d7a5e99520165d02ca42
   DIR parent ece75c3244a552af83d7bdfb0062396579169e38
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue, 11 Feb 2020 20:42:02 +0100
       
       reestablish_channel: do not send second channel_reestablish message if they are ahead (they should know it)
       
       Diffstat:
         M electrum/lnpeer.py                  |       9 ---------
       
       1 file changed, 0 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
       t@@ -709,14 +709,6 @@ class Peer(Logger):
                    raise Exception('Unknown channel_reestablish')
                self.channel_reestablished[chan_id].put_nowait(payload)
        
       -    def try_to_get_remote_to_force_close_with_their_latest(self, chan_id):
       -        self.logger.info(f"trying to get remote to force close {bh2u(chan_id)}")
       -        self.send_message(
       -            "channel_reestablish",
       -            channel_id=chan_id,
       -            next_local_commitment_number=0,
       -            next_remote_revocation_number=0)
       -
            @log_exceptions
            async def reestablish_channel(self, chan: Channel):
                await self.initialized.wait()
       t@@ -860,7 +852,6 @@ class Peer(Logger):
                        self.lnworker.save_channel(chan)
                if should_close_they_are_ahead:
                    self.logger.warning(f"channel_reestablish: remote is ahead of us! trying to get them to force-close.")
       -            self.try_to_get_remote_to_force_close_with_their_latest(chan_id)
                    return
                elif should_close_we_are_ahead:
                    self.logger.warning(f"channel_reestablish: we are ahead of remote! trying to force-close.")