Suicides tracing (#1688)

* tracing suicide

* fixed #1635

* fixed typo
This commit is contained in:
Marek Kotewicz
2016-07-22 14:47:23 +02:00
committed by Gav Wood
parent ce00c13c7a
commit 63dbb527cc
8 changed files with 208 additions and 11 deletions

View File

@@ -263,6 +263,7 @@ impl<'a, T, V> Ext for Externalities<'a, T, V> where T: 'a + Tracer, V: 'a + VMT
self.state.transfer_balance(&address, refund_address, &balance);
}
self.tracer.trace_suicide(address, balance, refund_address.clone(), self.depth + 1);
self.substate.suicides.insert(address);
}