From b9f0c2cc9d6fd1c38fc7c548b28e6d64dda4bf74 Mon Sep 17 00:00:00 2001 From: rishflab Date: Tue, 9 Feb 2021 18:27:44 +1100 Subject: [PATCH] Add confirmed field to TransactionStatus Deserialisation was failing because the response can contain a confirmed boolean without a blockheight. --- swap/src/bitcoin/wallet.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index 7e16bcc5..6bad2e66 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -196,6 +196,7 @@ impl TransactionBlockHeight for Wallet { #[derive(Serialize, Deserialize, Debug, Copy, Clone)] struct TransactionStatus { block_height: Option, + confirmed: bool, } // todo: Implement conversion to anyhow::error so we can dont have to wrap these // errors