@@ -2075,7 +2075,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
2075
2075
Some ( id) => id. clone ( ) ,
2076
2076
} ;
2077
2077
2078
- macro_rules! insert_payment_id {
2078
+ macro_rules! insert_outbound_payment {
2079
2079
( ) => {
2080
2080
let payment = payment_entry. or_insert_with( || PendingOutboundPayment :: Retryable {
2081
2081
session_privs: HashSet :: new( ) ,
@@ -2109,7 +2109,6 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
2109
2109
payee: payee. clone( ) ,
2110
2110
} , onion_packet, & self . logger) ,
2111
2111
channel_state, chan)
2112
-
2113
2112
} {
2114
2113
Some ( ( update_add, commitment_signed, monitor_update) ) => {
2115
2114
if let Err ( e) = self . chain_monitor . update_channel ( chan. get ( ) . get_funding_txo ( ) . unwrap ( ) , monitor_update) {
@@ -2119,10 +2118,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
2119
2118
// is restored. Therefore, we must return an error indicating that
2120
2119
// it is unsafe to retry the payment wholesale, which we do in the
2121
2120
// send_payment check for MonitorUpdateFailed, below.
2122
- insert_payment_id ! ( ) ; // Only do this after possibly break'ing on Perm failure above.
2121
+ insert_outbound_payment ! ( ) ; // Only do this after possibly break'ing on Perm failure above.
2123
2122
return Err ( APIError :: MonitorUpdateFailed ) ;
2124
2123
}
2125
- insert_payment_id ! ( ) ;
2124
+ insert_outbound_payment ! ( ) ;
2126
2125
2127
2126
log_debug ! ( self . logger, "Sending payment along path resulted in a commitment_signed for channel {}" , log_bytes!( chan. get( ) . channel_id( ) ) ) ;
2128
2127
channel_state. pending_msg_events . push ( events:: MessageSendEvent :: UpdateHTLCs {
@@ -2137,7 +2136,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
2137
2136
} ,
2138
2137
} ) ;
2139
2138
} ,
2140
- None => { insert_payment_id ! ( ) ; } ,
2139
+ None => { insert_outbound_payment ! ( ) ; } ,
2141
2140
}
2142
2141
} else { unreachable ! ( ) ; }
2143
2142
return Ok ( ( ) ) ;
0 commit comments