Skip to content

Commit

Permalink
Rename refund to resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Oct 25, 2023
1 parent 28aa08d commit 6be1ed1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/3l-node/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ fn refund_failed_swap(
Err(e) => return Err(e.to_string()),
};

match node.refund_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
match node.resolve_failed_swap(swap_address.into(), to_address.into(), fee_rate) {
Ok(txid) => {
println!("Successfully broadcasted refund transaction - txid: {txid}")
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ impl LightningNode {
}

/// Lists all unresolved failed swaps. Each individual failed swap can be refunded
/// using [`LightningNode::refund_failed_swap`].
/// using [`LightningNode::resolve_failed_swap`].
pub fn get_unresolved_failed_swaps(&self) -> Result<Vec<FailedSwapInfo>> {
Ok(self
.rt
Expand Down Expand Up @@ -1103,7 +1103,7 @@ impl LightningNode {
/// using [`LightningNode::query_onchain_fee`]
///
/// Returns the txid of the refund transaction.
pub fn refund_failed_swap(
pub fn resolve_failed_swap(
&self,
failed_swap_address: String,
to_address: String,
Expand Down
2 changes: 1 addition & 1 deletion src/lipalightninglib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface LightningNode {
sequence<FailedSwapInfo> get_unresolved_failed_swaps();

[Throws=LnError]
string refund_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);
string resolve_failed_swap(string failed_swap_address, string to_address, u32 onchain_fee_rate);

[Throws=LnError]
void hide_topup(string id);
Expand Down

0 comments on commit 6be1ed1

Please sign in to comment.