tlnpeer.maybe_fulfill_htlc: fix error case FINAL_INCORRECT_HTLC_AMOUNT - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 254f57bce55e11811408d710932dabfb9a1696b9 DIR parent 31bdb5c344f9bd2dc1f0885513302756f79b040f HTML 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: M electrum/lnpeer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py t@@ -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: