mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Gloas spec v1.7.0-alpha.5 and beacon_chain tests (#8998)
Fix database pruning post-Gloas - Fix DB pruning logic (and state summaries DAG) - Get the `beacon_chain` tests running with `FORK_NAME=gloas` 🎉 Co-Authored-By: Michael Sproul <michael@sigmaprime.io> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com> Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com> Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com> Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
@@ -44,18 +44,13 @@ impl<E: EthSpec, Payload: AbstractExecPayload<E>> BeaconSnapshot<E, Payload> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the state root from `self.beacon_block` or `self.execution_envelope` as
|
||||
/// appropriate.
|
||||
/// Returns the state root from `self.beacon_block`.
|
||||
///
|
||||
/// ## Caution
|
||||
///
|
||||
/// It is not strictly enforced that `root(self.beacon_state) == self.beacon_state_root()`.
|
||||
pub fn beacon_state_root(&self) -> Hash256 {
|
||||
if let Some(ref envelope) = self.execution_envelope {
|
||||
envelope.message.state_root
|
||||
} else {
|
||||
self.beacon_block.message().state_root()
|
||||
}
|
||||
self.beacon_block.message().state_root()
|
||||
}
|
||||
|
||||
/// Update all fields of the checkpoint.
|
||||
|
||||
Reference in New Issue
Block a user