You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The send_payment function returns a Payment object. In order to get the preimage for the payment, you need to go into details. details looks like this:
/// Wrapper for the different types of payments
#[derive(PartialEq, Eq, Debug, Clone, Deserialize, Serialize)]
#[serde(untagged)]
pub enum PaymentDetails {
Ln {
#[serde(flatten)]
data: LnPaymentDetails,
},
ClosedChannel {
#[serde(flatten)]
data: ClosedChannelPaymentDetails,
},
}
I think there is no way a payment will return ClosedChannelPaymentDetails? So this signature should only contain LnPaymentDetails to make the development easier.
The text was updated successfully, but these errors were encountered:
The send_payment function returns a
Payment
object. In order to get the preimage for the payment, you need to go intodetails
.details
looks like this:I think there is no way a payment will return
ClosedChannelPaymentDetails
? So this signature should only containLnPaymentDetails
to make the development easier.The text was updated successfully, but these errors were encountered: