@@ -949,28 +949,25 @@ impl OutboundPayments {
949949 } ;
950950
951951 let payment_params = Some ( route_params. payment_params . clone ( ) ) ;
952- macro_rules! create_pending_payment {
953- ( $invreq_opt: expr) => {
954- self . create_pending_payment(
955- payment_hash, recipient_onion. clone( ) , keysend_preimage, $invreq_opt, & route,
956- Some ( retry_strategy) , payment_params, entropy_source, best_block_height
957- )
958- }
959- }
960-
961952 let mut outbounds = self . pending_outbound_payments . lock ( ) . unwrap ( ) ;
962953 let onion_session_privs = match outbounds. entry ( payment_id) {
963954 hash_map:: Entry :: Occupied ( entry) => match entry. get ( ) {
964955 PendingOutboundPayment :: InvoiceReceived { .. } => {
965- let ( retryable_payment, onion_session_privs) = create_pending_payment ! ( None ) ;
956+ let ( retryable_payment, onion_session_privs) = self . create_pending_payment (
957+ payment_hash, recipient_onion. clone ( ) , keysend_preimage, None , & route,
958+ Some ( retry_strategy) , payment_params, entropy_source, best_block_height
959+ ) ;
966960 * entry. into_mut ( ) = retryable_payment;
967961 onion_session_privs
968962 } ,
969963 PendingOutboundPayment :: StaticInvoiceReceived { .. } => {
970964 let invreq = if let PendingOutboundPayment :: StaticInvoiceReceived { invoice_request, .. } = entry. remove ( ) {
971965 invoice_request
972966 } else { unreachable ! ( ) } ;
973- let ( retryable_payment, onion_session_privs) = create_pending_payment ! ( Some ( invreq) ) ;
967+ let ( retryable_payment, onion_session_privs) = self . create_pending_payment (
968+ payment_hash, recipient_onion. clone ( ) , keysend_preimage, Some ( invreq) , & route,
969+ Some ( retry_strategy) , payment_params, entropy_source, best_block_height
970+ ) ;
974971 outbounds. insert ( payment_id, retryable_payment) ;
975972 onion_session_privs
976973 } ,
0 commit comments