Skip to content

Commit

Permalink
to revert: try to deser the electrum response as json and log it
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Oct 7, 2024
1 parent a2e4348 commit decacb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mm2src/coins/utxo/rpc_clients/electrum_rpc/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,12 @@ 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);
error!("{} - {:?}", e, value);
return;
},
};
Expand Down

0 comments on commit decacb8

Please sign in to comment.