fixed merge
This commit is contained in:
parent
88200a1193
commit
8a420d6580
@ -484,7 +484,7 @@ pub mod common {
|
||||
fields.traces.as_mut().map(|mut traces| {
|
||||
let mut tracer = ExecutiveTracer::default();
|
||||
tracer.trace_reward(block_author, engine.params().block_reward, RewardType::Block);
|
||||
traces.push(tracer.traces())
|
||||
traces.push(tracer.drain())
|
||||
});
|
||||
|
||||
// Commit state so that we can actually figure out the state root.
|
||||
|
@ -109,7 +109,7 @@ impl Engine for NullEngine {
|
||||
|
||||
fields.state.commit()?;
|
||||
if tracing_enabled {
|
||||
fields.traces.as_mut().map(|mut traces| traces.push(tracer.traces()));
|
||||
fields.traces.as_mut().map(|mut traces| traces.push(tracer.drain()));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ impl Engine for Arc<Ethash> {
|
||||
// Commit state so that we can actually figure out the state root.
|
||||
fields.state.commit()?;
|
||||
if tracing_enabled {
|
||||
fields.traces.as_mut().map(|mut traces| traces.push(tracer.traces()));
|
||||
fields.traces.as_mut().map(|mut traces| traces.push(tracer.drain()));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
@ -219,28 +219,6 @@ impl Suicide {
|
||||
}
|
||||
}
|
||||
|
||||
impl Encodable for Suicide {
|
||||
fn rlp_append(&self, s: &mut RlpStream) {
|
||||
s.begin_list(3);
|
||||
s.append(&self.address);
|
||||
s.append(&self.refund_address);
|
||||
s.append(&self.balance);
|
||||
}
|
||||
}
|
||||
|
||||
impl Decodable for Suicide {
|
||||
fn decode(rlp: &UntrustedRlp) -> Result<Self, DecoderError> {
|
||||
let res = Suicide {
|
||||
address: rlp.val_at(0)?,
|
||||
refund_address: rlp.val_at(1)?,
|
||||
balance: rlp.val_at(2)?,
|
||||
};
|
||||
|
||||
Ok(res)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Description of an action that we trace; will be either a call or a create.
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[cfg_attr(feature = "ipc", binary)]
|
||||
|
Loading…
Reference in New Issue
Block a user