added explanatory comments

This commit is contained in:
debris 2016-04-11 11:36:39 +02:00
parent 610251fdf7
commit 4bfbb56701

View File

@ -135,6 +135,7 @@ impl Tracer for ExecutiveTracer {
fn trace_call(&mut self, call: Option<TraceCall>, gas_used: U256, output: Option<Bytes>, depth: usize, subs: fn trace_call(&mut self, call: Option<TraceCall>, gas_used: U256, output: Option<Bytes>, depth: usize, subs:
Vec<Trace>, delegate_call: bool) { Vec<Trace>, delegate_call: bool) {
// don't trace if it's DELEGATECALL or CALLCODE.
if delegate_call { if delegate_call {
return; return;
} }
@ -166,6 +167,7 @@ impl Tracer for ExecutiveTracer {
} }
fn trace_failed_call(&mut self, call: Option<TraceCall>, depth: usize, subs: Vec<Trace>, delegate_call: bool) { fn trace_failed_call(&mut self, call: Option<TraceCall>, depth: usize, subs: Vec<Trace>, delegate_call: bool) {
// don't trace if it's DELEGATECALL or CALLCODE.
if delegate_call { if delegate_call {
return; return;
} }