Unverified Commit ea652391 authored by Roman Zeyde's avatar Roman Zeyde
Browse files

Trace received Electrum RPC requests

parent 5507ee1a
......@@ -287,6 +287,7 @@ impl Connection {
fn handle_replies(&mut self) -> Result<()> {
loop {
let msg = self.chan.receiver().recv().chain_err(|| "channel closed")?;
trace!("RPC {:?}", msg);
match msg {
Message::Request(line) => {
let cmd: Value = from_str(&line).chain_err(|| "invalid JSON format")?;
......@@ -344,6 +345,7 @@ impl Connection {
}
}
#[derive(Debug)]
pub enum Message {
Request(String),
PeriodicUpdate,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment