URI: 
       tcalc_hops_data: total_msat should be optional - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 152894e6a95c016538af2030063e53b9781bf9f6
   DIR parent 0a5b714643c6bd1479ede01dd24c5d18981a8029
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 24 Feb 2021 16:14:19 +0100
       
       calc_hops_data: total_msat should be optional
       
       Diffstat:
         M electrum/lnonion.py                 |       4 ++--
         M electrum/lnpeer.py                  |       2 +-
       
       2 files changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/electrum/lnonion.py b/electrum/lnonion.py
       t@@ -261,8 +261,8 @@ def new_onion_packet(payment_path_pubkeys: Sequence[bytes], session_key: bytes,
                hmac=next_hmac)
        
        
       -def calc_hops_data_for_payment(route: 'LNPaymentRoute', amount_msat: int, total_msat: int,
       -                               final_cltv: int, *, payment_secret: bytes = None) \
       +def calc_hops_data_for_payment(route: 'LNPaymentRoute', amount_msat: int, final_cltv: int, *,
       +                               total_msat=None, payment_secret: bytes = None) \
                -> Tuple[List[OnionHopsDataSingle], int, int]:
            """Returns the hops_data to be used for constructing an onion packet,
            and the amount_msat and cltv to be used on our immediate channel.
   DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
       t@@ -1209,8 +1209,8 @@ class Peer(Logger):
                hops_data, amount_msat, cltv = calc_hops_data_for_payment(
                    route,
                    amount_msat,
       -            total_msat,
                    final_cltv,
       +            total_msat=total_msat,
                    payment_secret=payment_secret
                )
                self.logger.info(f"lnpeer.pay len(route)={len(route)}")