@@ -301,7 +301,6 @@ async def create_routes_from_invoice(self, amount_msat: int, decoded_invoice: Ln
301301 set_request_status = LNWallet .set_request_status
302302 set_payment_status = LNWallet .set_payment_status
303303 get_payment_status = LNWallet .get_payment_status
304- check_mpp_status = LNWallet .check_mpp_status
305304 htlc_fulfilled = LNWallet .htlc_fulfilled
306305 htlc_failed = LNWallet .htlc_failed
307306 save_preimage = LNWallet .save_preimage
@@ -334,11 +333,9 @@ async def create_routes_from_invoice(self, amount_msat: int, decoded_invoice: Ln
334333 unregister_hold_invoice = LNWallet .unregister_hold_invoice
335334 add_payment_info_for_hold_invoice = LNWallet .add_payment_info_for_hold_invoice
336335
337- update_mpp_with_received_htlc = LNWallet .update_mpp_with_received_htlc
336+ update_or_create_mpp_with_received_htlc = LNWallet .update_or_create_mpp_with_received_htlc
338337 set_mpp_resolution = LNWallet .set_mpp_resolution
339- is_mpp_amount_reached = LNWallet .is_mpp_amount_reached
340338 get_mpp_amounts = LNWallet .get_mpp_amounts
341- get_first_timestamp_of_mpp = LNWallet .get_first_timestamp_of_mpp
342339 bundle_payments = LNWallet .bundle_payments
343340 get_payment_bundle = LNWallet .get_payment_bundle
344341 _get_payment_key = LNWallet ._get_payment_key
@@ -347,8 +344,14 @@ async def create_routes_from_invoice(self, amount_msat: int, decoded_invoice: Ln
347344 maybe_cleanup_forwarding = LNWallet .maybe_cleanup_forwarding
348345 current_target_feerate_per_kw = LNWallet .current_target_feerate_per_kw
349346 current_low_feerate_per_kw_srk_channel = LNWallet .current_low_feerate_per_kw_srk_channel
350- maybe_cleanup_mpp = LNWallet .maybe_cleanup_mpp
351347 create_onion_for_route = LNWallet .create_onion_for_route
348+ maybe_forward_htlc_set = LNWallet .maybe_forward_htlc_set
349+ _maybe_forward_htlc = LNWallet ._maybe_forward_htlc
350+ _maybe_forward_trampoline = LNWallet ._maybe_forward_trampoline
351+ _maybe_refuse_to_forward_htlc_that_corresponds_to_payreq_we_created = LNWallet ._maybe_refuse_to_forward_htlc_that_corresponds_to_payreq_we_created
352+ set_htlc_set_error = LNWallet .set_htlc_set_error
353+ is_payment_bundle_complete = LNWallet .is_payment_bundle_complete
354+ delete_payment_bundle = LNWallet .delete_payment_bundle
352355
353356
354357class MockTransport :
@@ -709,7 +712,7 @@ async def bob_sends_reest():
709712
710713 @staticmethod
711714 def _send_fake_htlc (peer : Peer , chan : Channel ) -> UpdateAddHtlc :
712- htlc = UpdateAddHtlc (amount_msat = 10000 , payment_hash = os .urandom (32 ), cltv_abs = 999 , timestamp = 1 )
715+ htlc = UpdateAddHtlc (amount_msat = 10000 , rhash = os .urandom (32 ). hex ( ), cltv_abs = 999 , timestamp = 1 )
713716 htlc = chan .add_htlc (htlc )
714717 peer .send_message (
715718 "update_add_htlc" ,
0 commit comments