URI: 
       tlog if no invoice has no routing hints - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 384fd665b38f9a37c448028be1361653867e3bbd
   DIR parent d9eb92979bad46aa8d2f3a4b12cd5a76b6a4107d
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Wed, 17 Oct 2018 17:32:58 +0200
       
       log if no invoice has no routing hints
       
       Diffstat:
         M electrum/lnworker.py                |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
       t@@ -315,6 +315,9 @@ class LNWorker(PrintError):
                RHASH = sha256(payment_preimage)
                amount_btc = amount_sat/Decimal(COIN) if amount_sat else None
                routing_hints = self._calc_routing_hints_for_invoice(amount_sat)
       +        if not routing_hints:
       +            self.print_error("Warning. No routing hints added to invoice. "
       +                             "Other clients will likely not be able to send to us.")
                pay_req = lnencode(LnAddr(RHASH, amount_btc, tags=[('d', message)]+routing_hints),
                                   self.node_keypair.privkey)
                self.invoices[bh2u(payment_preimage)] = pay_req