Add RPC & client call to replay a transaction. (#1734)

* Add RPC & client call to replay a transaction.

* Address grumbles
This commit is contained in:
Gav Wood
2016-07-27 21:34:32 +02:00
committed by GitHub
parent b9a08c36aa
commit eaa41ea568
9 changed files with 124 additions and 21 deletions

View File

@@ -50,6 +50,7 @@ impl Tracer for ExecutiveTracer {
output: output.expect("self.prepare_trace_output().is_some(): so we must be tracing: qed")
})
};
debug!(target: "trace", "Traced call {:?}", trace);
self.traces.push(trace);
}
@@ -64,6 +65,7 @@ impl Tracer for ExecutiveTracer {
address: address
})
};
debug!(target: "trace", "Traced create {:?}", trace);
self.traces.push(trace);
}
@@ -74,6 +76,7 @@ impl Tracer for ExecutiveTracer {
action: Action::Call(call.expect("self.prepare_trace_call().is_some(): so we must be tracing: qed")),
result: Res::FailedCall,
};
debug!(target: "trace", "Traced failed call {:?}", trace);
self.traces.push(trace);
}
@@ -84,6 +87,7 @@ impl Tracer for ExecutiveTracer {
action: Action::Create(create.expect("self.prepare_trace_create().is_some(): so we must be tracing: qed")),
result: Res::FailedCreate,
};
debug!(target: "trace", "Traced failed create {:?}", trace);
self.traces.push(trace);
}
@@ -98,6 +102,7 @@ impl Tracer for ExecutiveTracer {
}),
result: Res::None,
};
debug!(target: "trace", "Traced failed suicide {:?}", trace);
self.traces.push(trace);
}