Skip to content

Commit

Permalink
Merge #20: pay: 0.10.0 fix incompatible response
Browse files Browse the repository at this point in the history
28b0b06 pay: 0.10.0 fix incompatible response (elsirion)

Pull request description:

  A few fields of the pay response were removed and one added since this crate was last updated. This PR fixes the pay command. Others might be incompatible too, but would require more extensive testing. Easy testing will be possible once ElementsProject/lightning#4501 lands.

ACKs for top commit:
  laanwj:
    Code review ACK 28b0b06

Tree-SHA512: 184ea4665425185c13a61639aac5660ffeec42446f19342de8da37cb49a17de0caa9f81d3255ceb6e3f77f52a97bfb5936f402150b1e64793cbf4f1c263e3559
  • Loading branch information
laanwj committed Nov 11, 2021
2 parents 8b765ca + 28b0b06 commit d4f4ed3
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 d4f4ed3

Please sign in to comment.