Skip to content

Commit 9a4cdb0

Browse files
committed
f Rename Bolt11PaymentHandler to Bolt11Payment
1 parent f125182 commit 9a4cdb0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

bindings/ldk_node.udl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ interface Node {
5353
void event_handled();
5454
PublicKey node_id();
5555
sequence<SocketAddress>? listening_addresses();
56-
Bolt11PaymentHandler bolt11_payment();
56+
Bolt11Payment bolt11_payment();
5757
[Throws=NodeError]
5858
Address new_onchain_address();
5959
[Throws=NodeError]
@@ -88,7 +88,7 @@ interface Node {
8888
boolean verify_signature([ByRef]sequence<u8> msg, [ByRef]string sig, [ByRef]PublicKey pkey);
8989
};
9090

91-
interface Bolt11PaymentHandler {
91+
interface Bolt11Payment {
9292
[Throws=NodeError]
9393
PaymentHash send([ByRef]Bolt11Invoice invoice);
9494
[Throws=NodeError]

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//! [`start`]: Node::start
6767
//! [`stop`]: Node::stop
6868
//! [`connect_open_channel`]: Node::connect_open_channel
69-
//! [`send`]: Bolt11PaymentHandler::send
69+
//! [`send`]: Bolt11Payment::send
7070
//!
7171
#![cfg_attr(not(feature = "uniffi"), deny(missing_docs))]
7272
#![deny(rustdoc::broken_intra_doc_links)]
@@ -130,7 +130,7 @@ use connection::ConnectionManager;
130130
use event::{EventHandler, EventQueue};
131131
use gossip::GossipSource;
132132
use liquidity::LiquiditySource;
133-
use payment::Bolt11PaymentHandler;
133+
use payment::Bolt11Payment;
134134
use payment_store::PaymentStore;
135135
pub use payment_store::{LSPFeeLimits, PaymentDetails, PaymentDirection, PaymentStatus};
136136
use peer_store::{PeerInfo, PeerStore};
@@ -821,8 +821,8 @@ impl Node {
821821
///
822822
/// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md
823823
#[cfg(not(feature = "uniffi"))]
824-
pub fn bolt11_payment(&self) -> Bolt11PaymentHandler {
825-
Bolt11PaymentHandler::new(
824+
pub fn bolt11_payment(&self) -> Bolt11Payment {
825+
Bolt11Payment::new(
826826
Arc::clone(&self.runtime),
827827
Arc::clone(&self.channel_manager),
828828
Arc::clone(&self.connection_manager),
@@ -839,8 +839,8 @@ impl Node {
839839
///
840840
/// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md
841841
#[cfg(feature = "uniffi")]
842-
pub fn bolt11_payment(&self) -> Arc<Bolt11PaymentHandler> {
843-
Arc::new(Bolt11PaymentHandler::new(
842+
pub fn bolt11_payment(&self) -> Arc<Bolt11Payment> {
843+
Arc::new(Bolt11Payment::new(
844844
Arc::clone(&self.runtime),
845845
Arc::clone(&self.channel_manager),
846846
Arc::clone(&self.connection_manager),
@@ -1218,7 +1218,7 @@ impl Node {
12181218
/// Sends payment probes over all paths of a route that would be used to pay the given
12191219
/// amount to the given `node_id`.
12201220
///
1221-
/// See [`Bolt11PaymentHandler::send_probes`] for more information.
1221+
/// See [`Bolt11Payment::send_probes`] for more information.
12221222
pub fn send_spontaneous_payment_probes(
12231223
&self, amount_msat: u64, node_id: PublicKey,
12241224
) -> Result<(), Error> {

src/payment/bolt11.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use std::sync::{Arc, RwLock};
2929
///
3030
/// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md
3131
/// [`Node::bolt11_payment`]: crate::Node::bolt11_payment
32-
pub struct Bolt11PaymentHandler {
32+
pub struct Bolt11Payment {
3333
runtime: Arc<RwLock<Option<tokio::runtime::Runtime>>>,
3434
channel_manager: Arc<ChannelManager>,
3535
connection_manager: Arc<ConnectionManager<Arc<FilesystemLogger>>>,
@@ -41,7 +41,7 @@ pub struct Bolt11PaymentHandler {
4141
logger: Arc<FilesystemLogger>,
4242
}
4343

44-
impl Bolt11PaymentHandler {
44+
impl Bolt11Payment {
4545
pub(crate) fn new(
4646
runtime: Arc<RwLock<Option<tokio::runtime::Runtime>>>,
4747
channel_manager: Arc<ChannelManager>,

src/payment/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
33
mod bolt11;
44

5-
pub use bolt11::Bolt11PaymentHandler;
5+
pub use bolt11::Bolt11Payment;

0 commit comments

Comments
 (0)