t_calc_routing_hints_for_invoice: also incl chans < invoice amount - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6f894b9f8885f03203fa4ddf50da795c0c5c6fd1 DIR parent 1139720b58034a4e8dd190faade7fc68665e05bd HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 1 Mar 2021 21:51:17 +0100 _calc_routing_hints_for_invoice: also incl chans < invoice amount now that we can receive MPP Diffstat: M electrum/lnworker.py | 5 ----- 1 file changed, 0 insertions(+), 5 deletions(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -1800,17 +1800,12 @@ class LNWallet(LNWorker): random.shuffle(channels) # not sure this has any benefit but let's not leak channel order scid_to_my_channels = {chan.short_channel_id: chan for chan in channels if chan.short_channel_id is not None} - if not amount_msat: - # for no amt invoices, check if channel can receive at least 1 msat - amount_msat = 1 # note: currently we add *all* our channels; but this might be a privacy leak? for chan in channels: # do minimal filtering of channels. # we include channels that cannot *right now* receive (e.g. peer disconnected or balance insufficient) if not (chan.is_open() and not chan.is_frozen_for_receiving()): continue - if amount_msat > 1000 * chan.constraints.capacity: - continue chan_id = chan.short_channel_id assert isinstance(chan_id, bytes), chan_id channel_info = get_mychannel_info(chan_id, scid_to_my_channels)