Skip to content

Commit

Permalink
pay: 0.10.0 fix incompatible response
Browse files Browse the repository at this point in the history
A few fields of the pay response were
removed and one added since this crate
was last updated. This fixes the pay
command.
  • Loading branch information
elsirion committed May 27, 2021
1 parent 8b765ca commit 28b0b06
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,14 @@ pub struct FailureItem {
/// 'pay' command
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Pay {
pub id: u64,
pub payment_hash: String,
pub destination: String,
pub msatoshi: u64,
pub msatoshi_sent: u64,
pub created_at: u64,
pub created_at: f64,
pub status: String,
pub payment_preimage: String,
pub description: String,
pub getroute_tries: u64,
pub sendpay_tries: u64,
pub route: Vec<common::RouteItem>,
pub failures: Vec<FailureItem>,
pub parts: u64,
}

/// 'sendpay' command
Expand Down

0 comments on commit 28b0b06

Please sign in to comment.