Change which pre state is logged
This commit is contained in:
parent
e7b324966d
commit
09b0db2535
@ -1039,11 +1039,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
metrics::stop_timer(db_read_timer);
|
||||
|
||||
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);
|
||||
|
||||
@ -1069,6 +1064,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
|
||||
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);
|
||||
|
||||
// Apply the received block to its parent state (which has been transitioned into this
|
||||
|
Loading…
Reference in New Issue
Block a user