Clean println's out of state processing

This commit is contained in:
Paul Hauner 2019-03-21 18:21:26 +11:00
parent ca18d4390a
commit 430702b38d
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -596,7 +596,6 @@ where
// Transition the parent state to the present slot.
let mut state = parent_state;
println!("parent process state: {:?}", state.latest_block_header);
let previous_block_header = parent_block.into_header();
for _ in state.slot.as_u64()..present_slot.as_u64() {
if let Err(e) = per_slot_processing(&mut state, &previous_block_header, &self.spec) {
@ -614,8 +613,6 @@ where
));
}
println!("process state: {:?}", state.latest_block_header);
let state_root = state.canonical_root();
if block.state_root != state_root {
@ -706,8 +703,6 @@ where
per_block_processing_without_verifying_block_signature(&mut state, &block, &self.spec)?;
println!("produce state: {:?}", state.latest_block_header);
let state_root = state.canonical_root();
block.state_root = state_root;