Skip to content

Commit

Permalink
Merge pull request #1245 from getlipa/fix/remove-swap-txid
Browse files Browse the repository at this point in the history
Remove swap txid
  • Loading branch information
danielgranhao authored Oct 31, 2024
2 parents 69effe1 + 7e86f63 commit d9701fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1123,12 +1123,6 @@ impl LightningNode {
+ in_progress_swap.confirmed_sats)
.as_sats()
.to_amount_down(&self.get_exchange_rate()),
txid: in_progress_swap
.unconfirmed_tx_ids
.first()
.or(in_progress_swap.confirmed_tx_ids.first())
.ok_or(permanent_failure("In-progress swap doesn't have any txids"))?
.clone(),
},
})
}
Expand Down Expand Up @@ -1350,11 +1344,6 @@ impl LightningNode {
created_at: unix_timestamp_to_system_time(s.created_at as u64)
.with_timezone(tz_config.clone()),
paid_amount: s.paid_msat.as_msats().to_amount_down(&exchange_rate),
txid: s
.confirmed_tx_ids
.first()
.ok_or(permanent_failure("Confirmed swap has no confirmed txid"))?
.clone(),
};
let incoming_payment_info = IncomingPaymentInfo::new(
breez_payment,
Expand Down
1 change: 0 additions & 1 deletion src/lipalightninglib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ dictionary SwapInfo {
string bitcoin_address;
TzTime created_at;
Amount paid_amount;
string txid;
};

dictionary ReverseSwapInfo {
Expand Down
1 change: 0 additions & 1 deletion src/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub struct SwapInfo {
pub bitcoin_address: String,
pub created_at: TzTime,
pub paid_amount: Amount,
pub txid: String,
}

/// Information about a generated swap address
Expand Down

0 comments on commit d9701fb

Please sign in to comment.