commit 254f57bce55e11811408d710932dabfb9a1696b9
parent 31bdb5c344f9bd2dc1f0885513302756f79b040f
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 25 Feb 2021 12:49:06 +0100
lnpeer.maybe_fulfill_htlc: fix error case FINAL_INCORRECT_HTLC_AMOUNT
follow-up ef5a26544981a426945b1d32b22b170272cb0671
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
@@ -1553,7 +1553,7 @@ class Peer(Logger):
if not is_trampoline and amt_to_forward != htlc.amount_msat:
raise OnionRoutingFailure(
code=OnionFailureCode.FINAL_INCORRECT_HTLC_AMOUNT,
- data=total_msat.to_bytes(8, byteorder="big"))
+ data=htlc.amount_msat.to_bytes(8, byteorder="big"))
# if there is a trampoline_onion, perform the above checks on it
if processed_onion.trampoline_onion_packet: