mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Tidy per_slot_processing fn
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
use crate::*;
|
use crate::*;
|
||||||
use tree_hash::{SignedRoot, TreeHash};
|
use tree_hash::SignedRoot;
|
||||||
use types::*;
|
use types::*;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
@@ -24,7 +24,6 @@ pub fn per_slot_processing(state: &mut BeaconState, spec: &ChainSpec) -> Result<
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn cache_state(state: &mut BeaconState, spec: &ChainSpec) -> Result<(), Error> {
|
fn cache_state(state: &mut BeaconState, spec: &ChainSpec) -> Result<(), Error> {
|
||||||
// let previous_slot_state_root = Hash256::from_slice(&state.tree_hash_root()[..]);
|
|
||||||
let previous_slot_state_root = state.update_tree_hash_cache()?;
|
let previous_slot_state_root = state.update_tree_hash_cache()?;
|
||||||
|
|
||||||
// Note: increment the state slot here to allow use of our `state_root` and `block_root`
|
// Note: increment the state slot here to allow use of our `state_root` and `block_root`
|
||||||
|
|||||||
Reference in New Issue
Block a user