@@ -313,6 +313,7 @@ fn rotate_through_iterators<T, I: Iterator<Item = T>>(mut vecs: Vec<I>) -> impl
313
313
} )
314
314
}
315
315
316
+ #[ deprecated( note = "Use ChannelManager::create_bolt11_invoice instead." ) ]
316
317
/// Utility to construct an invoice. Generally, unless you want to do something like a custom
317
318
/// cltv_expiry, this is what you should be using to create an invoice. The reason being, this
318
319
/// method stores the invoice's payment secret and preimage in `ChannelManager`, so (a) the user
@@ -356,6 +357,7 @@ where
356
357
channelmanager. create_bolt11_invoice ( params)
357
358
}
358
359
360
+ #[ deprecated( note = "Use ChannelManager::create_bolt11_invoice instead." ) ]
359
361
/// Utility to construct an invoice. Generally, unless you want to do something like a custom
360
362
/// cltv_expiry, this is what you should be using to create an invoice. The reason being, this
361
363
/// method stores the invoice's payment secret and preimage in `ChannelManager`, so (a) the user
@@ -400,6 +402,7 @@ where
400
402
}
401
403
402
404
405
+ #[ deprecated( note = "Use ChannelManager::create_bolt11_invoice instead." ) ]
403
406
/// See [`create_invoice_from_channelmanager`]
404
407
/// This version allows for providing custom [`PaymentHash`] and description hash for the invoice.
405
408
///
@@ -433,6 +436,7 @@ where
433
436
channelmanager. create_bolt11_invoice ( params)
434
437
}
435
438
439
+ #[ deprecated( note = "Use ChannelManager::create_bolt11_invoice instead." ) ]
436
440
/// See [`create_invoice_from_channelmanager`]
437
441
/// This version allows for providing a custom [`PaymentHash`] for the invoice.
438
442
/// This may be useful if you're building an on-chain swap or involving another protocol where
0 commit comments