mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-09 03:17:55 +00:00
Automate merkle proofs with metastruct
This commit is contained in:
@@ -49,9 +49,8 @@ impl<E: EthSpec> LoadCase for MerkleProofValidity<E> {
|
||||
|
||||
impl<E: EthSpec> Case for MerkleProofValidity<E> {
|
||||
fn result(&self, _case_index: usize, _fork_name: ForkName) -> Result<(), Error> {
|
||||
// FIXME(sproul): re-enable merkle proofs
|
||||
/*
|
||||
let mut state = self.state.clone();
|
||||
state.update_tree_hash_cache().unwrap();
|
||||
let proof = match state.compute_merkle_proof(self.merkle_proof.leaf_index) {
|
||||
Ok(proof) => proof,
|
||||
Err(_) => {
|
||||
@@ -80,10 +79,6 @@ impl<E: EthSpec> Case for MerkleProofValidity<E> {
|
||||
}
|
||||
}
|
||||
|
||||
// Tree hash cache should still be initialized (not dropped).
|
||||
assert!(state.tree_hash_cache().is_initialized());
|
||||
*/
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ eth2 = { path = "../../common/eth2" }
|
||||
validator_client = { path = "../../validator_client" }
|
||||
validator_dir = { path = "../../common/validator_dir", features = ["insecure_keys"] }
|
||||
sensitive_url = { path = "../../common/sensitive_url" }
|
||||
execution_layer = { path = "../../beacon_node/execution_layer" }
|
||||
execution_layer = { path = "../../beacon_node/execution_layer" }
|
||||
|
||||
Reference in New Issue
Block a user