Skip to content

Commit e266e70

Browse files
committed
Rename refund to resolve
1 parent a1decfd commit e266e70

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/3l-node/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ fn refund_failed_swap(
603603
Err(e) => return Err(e.to_string()),
604604
};
605605

606-
match node.refund_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
606+
match node.resolve_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
607607
Ok(txid) => {
608608
println!("Successfully broadcasted refund transaction - txid: {txid}")
609609
}

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ impl LightningNode {
11121112
}
11131113

11141114
/// Lists all unresolved failed swaps. Each individual failed swap can be refunded
1115-
/// using [`LightningNode::refund_failed_swap`].
1115+
/// using [`LightningNode::resolve_failed_swap`].
11161116
pub fn get_unresolved_failed_swaps(&self) -> Result<Vec<FailedSwapInfo>> {
11171117
Ok(self
11181118
.rt
@@ -1144,7 +1144,7 @@ impl LightningNode {
11441144
/// using [`LightningNode::query_onchain_fee_rate`]
11451145
///
11461146
/// Returns the txid of the refund transaction.
1147-
pub fn refund_failed_swap(
1147+
pub fn resolve_failed_swap(
11481148
&self,
11491149
failed_swap_address: String,
11501150
to_address: String,

src/lipalightninglib.udl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ interface LightningNode {
8080
sequence<FailedSwapInfo> get_unresolved_failed_swaps();
8181

8282
[Throws=LnError]
83-
string refund_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);
83+
string resolve_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);
8484

8585
[Throws=LnError]
8686
void hide_topup(string id);

0 commit comments

Comments
 (0)