Skip to content

Commit 8743455

Browse files
committed
Rename refund to resolve
1 parent 3a05ea2 commit 8743455

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
@@ -630,7 +630,7 @@ fn refund_failed_swap(
630630
Err(e) => return Err(e.to_string()),
631631
};
632632

633-
match node.refund_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
633+
match node.resolve_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
634634
Ok(txid) => {
635635
println!("Successfully broadcasted refund transaction - txid: {txid}")
636636
}

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ impl LightningNode {
11581158
}
11591159

11601160
/// Lists all unresolved failed swaps. Each individual failed swap can be refunded
1161-
/// using [`LightningNode::refund_failed_swap`].
1161+
/// using [`LightningNode::resolve_failed_swap`].
11621162
pub fn get_unresolved_failed_swaps(&self) -> Result<Vec<FailedSwapInfo>> {
11631163
Ok(self
11641164
.rt
@@ -1190,7 +1190,7 @@ impl LightningNode {
11901190
/// using [`LightningNode::query_onchain_fee_rate`]
11911191
///
11921192
/// Returns the txid of the refund transaction.
1193-
pub fn refund_failed_swap(
1193+
pub fn resolve_failed_swap(
11941194
&self,
11951195
failed_swap_address: String,
11961196
to_address: String,

src/lipalightninglib.udl

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

8585
[Throws=LnError]
86-
string refund_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);
86+
string resolve_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);
8787

8888
[Throws=LnError]
8989
void hide_topup(string id);

0 commit comments

Comments
 (0)