tinvoice 'r' field fallback: change cltv to 1 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit dfe61e15c317d4b29c2b583e2a633692188791bf DIR parent 4b37343c6255d156d9b25190d22e7fb8a602d2a2 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 18 Oct 2018 19:21:44 +0200 invoice 'r' field fallback: change cltv to 1 Diffstat: M electrum/lnworker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -349,10 +349,12 @@ class LNWorker(PrintError): assert type(chan_id) is bytes, chan_id channel_info = self.channel_db.get_channel_info(chan_id) # note: as a fallback, if we don't have a channel update for the - # incoming direction of our private channel, we fill the invoice with zeroes. + # incoming direction of our private channel, we fill the invoice with garbage. # the sender should still be able to pay us, but will incur an extra round trip # (they will get the channel update from the onion error) - fee_base_msat = fee_proportional_millionths = cltv_expiry_delta = 0 + # at least, that's the theory. https://github.com/lightningnetwork/lnd/issues/2066 + fee_base_msat = fee_proportional_millionths = 0 + cltv_expiry_delta = 1 # lnd won't even try with zero missing_info = True if channel_info: policy = channel_info.get_policy_for_node(chan.node_id)