From decacb8f165bd95afc8523db510a96c41a7c2c31 Mon Sep 17 00:00:00 2001 From: Omer Yacine Date: Mon, 7 Oct 2024 15:02:44 +0200 Subject: [PATCH] to revert: try to deser the electrum response as json and log it --- mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs b/mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs index 4bf6dabbe1..79c1cf2864 100644 --- a/mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs +++ b/mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs @@ -307,10 +307,12 @@ impl ElectrumConnection { BatchResponses(JsonRpcBatchResponse), } + let value = serde_json::from_slice::(bytes.clone()); + let response: ElectrumRpcResponseEnum = match serde_json::from_slice(bytes) { Ok(res) => res, Err(e) => { - error!("{}", e); + error!("{} - {:?}", e, value); return; }, };