Skip to content

Commit

Permalink
Revert "to revert: try to deser the electrum response as json and log…
Browse files Browse the repository at this point in the history
… it"

This reverts commit decacb8.
  • Loading branch information
mariocynicys committed Oct 10, 2024
1 parent d5b2ef3 commit 00b71c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,10 @@ impl ElectrumConnection {
BatchResponses(JsonRpcBatchResponse),
}

let value = serde_json::from_slice::<serde_json::Value>(bytes.clone());

let response: ElectrumRpcResponseEnum = match serde_json::from_slice(bytes) {
Ok(res) => res,
Err(e) => {
error!("{} - {:?}", e, value);
error!("{}", e);
return;
},
};
Expand Down

0 comments on commit 00b71c3

Please sign in to comment.