Change which pre state is logged

This commit is contained in:
Paul Hauner 2019-09-08 21:11:16 -04:00
parent e7b324966d
commit 09b0db2535
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -1039,11 +1039,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
metrics::stop_timer(db_read_timer); metrics::stop_timer(db_read_timer);
write_block(&block, block_root, &self.log); write_block(&block, block_root, &self.log);
write_state(
&format!("state_pre_block_{}", block_root),
&parent_state,
&self.log,
);
let catchup_timer = metrics::start_timer(&metrics::BLOCK_PROCESSING_CATCHUP_STATE); let catchup_timer = metrics::start_timer(&metrics::BLOCK_PROCESSING_CATCHUP_STATE);
@ -1069,6 +1064,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
metrics::stop_timer(committee_timer); metrics::stop_timer(committee_timer);
write_state(
&format!("state_pre_block_{}", block_root),
&state,
&self.log,
);
let core_timer = metrics::start_timer(&metrics::BLOCK_PROCESSING_CORE); let core_timer = metrics::start_timer(&metrics::BLOCK_PROCESSING_CORE);
// Apply the received block to its parent state (which has been transitioned into this // Apply the received block to its parent state (which has been transitioned into this