From 28b0b062dfb7d758a3a0753c274febe4a7faa584 Mon Sep 17 00:00:00 2001 From: elsirion Date: Thu, 27 May 2021 05:33:48 +0200 Subject: [PATCH] pay: 0.10.0 fix incompatible response A few fields of the pay response were removed and one added since this crate was last updated. This fixes the pay command. --- src/responses.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/responses.rs b/src/responses.rs index 527557c..b4d6f28 100644 --- a/src/responses.rs +++ b/src/responses.rs @@ -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, - pub failures: Vec, + pub parts: u64, } /// 'sendpay' command