@@ -212,9 +212,7 @@ fn extract_invoice_request<'a, 'b, 'c>(
212
212
OffersMessage :: StaticInvoice ( invoice) => panic ! ( "Unexpected static invoice: {:?}" , invoice) ,
213
213
OffersMessage :: InvoiceError ( error) => panic ! ( "Unexpected invoice_error: {:?}" , error) ,
214
214
} ,
215
- #[ cfg( async_payments) ]
216
- ParsedOnionMessageContents :: AsyncPayments ( message) => panic ! ( "Unexpected async payments message: {:?}" , message) ,
217
- ParsedOnionMessageContents :: Custom ( message) => panic ! ( "Unexpected custom message: {:?}" , message) ,
215
+ _ => panic ! ( "Unexpected message {:?}" , message) ,
218
216
} ,
219
217
Ok ( PeeledOnion :: Forward ( _, _) ) => panic ! ( "Unexpected onion message forward" ) ,
220
218
Err ( e) => panic ! ( "Failed to process onion message {:?}" , e) ,
@@ -231,9 +229,7 @@ fn extract_invoice<'a, 'b, 'c>(node: &Node<'a, 'b, 'c>, message: &OnionMessage)
231
229
OffersMessage :: StaticInvoice ( invoice) => panic ! ( "Unexpected static invoice: {:?}" , invoice) ,
232
230
OffersMessage :: InvoiceError ( error) => panic ! ( "Unexpected invoice_error: {:?}" , error) ,
233
231
} ,
234
- #[ cfg( async_payments) ]
235
- ParsedOnionMessageContents :: AsyncPayments ( message) => panic ! ( "Unexpected async payments message: {:?}" , message) ,
236
- ParsedOnionMessageContents :: Custom ( message) => panic ! ( "Unexpected custom message: {:?}" , message) ,
232
+ _ => panic ! ( "Unexpected message {:?}" , message) ,
237
233
} ,
238
234
Ok ( PeeledOnion :: Forward ( _, _) ) => panic ! ( "Unexpected onion message forward" ) ,
239
235
Err ( e) => panic ! ( "Failed to process onion message {:?}" , e) ,
@@ -252,9 +248,7 @@ fn extract_invoice_error<'a, 'b, 'c>(
252
248
OffersMessage :: StaticInvoice ( invoice) => panic ! ( "Unexpected invoice: {:?}" , invoice) ,
253
249
OffersMessage :: InvoiceError ( error) => error,
254
250
} ,
255
- #[ cfg( async_payments) ]
256
- ParsedOnionMessageContents :: AsyncPayments ( message) => panic ! ( "Unexpected async payments message: {:?}" , message) ,
257
- ParsedOnionMessageContents :: Custom ( message) => panic ! ( "Unexpected custom message: {:?}" , message) ,
251
+ _ => panic ! ( "Unexpected message: {:?}" , message) ,
258
252
} ,
259
253
Ok ( PeeledOnion :: Forward ( _, _) ) => panic ! ( "Unexpected onion message forward" ) ,
260
254
Err ( e) => panic ! ( "Failed to process onion message {:?}" , e) ,
0 commit comments