From 4bfbb56701b48115bdb1cf797b974fbe73a777f8 Mon Sep 17 00:00:00 2001 From: debris Date: Mon, 11 Apr 2016 11:36:39 +0200 Subject: [PATCH] added explanatory comments --- ethcore/src/trace/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethcore/src/trace/mod.rs b/ethcore/src/trace/mod.rs index c63f43f23..2a5bda6c5 100644 --- a/ethcore/src/trace/mod.rs +++ b/ethcore/src/trace/mod.rs @@ -135,6 +135,7 @@ impl Tracer for ExecutiveTracer { fn trace_call(&mut self, call: Option, gas_used: U256, output: Option, depth: usize, subs: Vec, delegate_call: bool) { + // don't trace if it's DELEGATECALL or CALLCODE. if delegate_call { return; } @@ -166,6 +167,7 @@ impl Tracer for ExecutiveTracer { } fn trace_failed_call(&mut self, call: Option, depth: usize, subs: Vec, delegate_call: bool) { + // don't trace if it's DELEGATECALL or CALLCODE. if delegate_call { return; }