diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 187dec199..df90c2cd2 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1179,7 +1179,7 @@ class Peer(Logger): data = outgoing_chan_upd_len + outgoing_chan_upd return None, None, OnionRoutingFailureMessage(code=OnionFailureCode.EXPIRY_TOO_SOON, data=data) if max(htlc.cltv_expiry, next_cltv_expiry) > local_height + lnutil.NBLOCK_CLTV_EXPIRY_TOO_FAR_INTO_FUTURE: - return None, OnionRoutingFailureMessage(code=OnionFailureCode.EXPIRY_TOO_FAR, data=b'') + return None, None, OnionRoutingFailureMessage(code=OnionFailureCode.EXPIRY_TOO_FAR, data=b'') try: next_amount_msat_htlc = processed_onion.hop_data.payload["amt_to_forward"]["amt_to_forward"] except: