mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Fix failing test, add hacky fix
This commit is contained in:
@@ -77,7 +77,7 @@ pub fn subtree_derive(input: TokenStream) -> TokenStream {
|
||||
let mut lengths = vec![];
|
||||
|
||||
#(
|
||||
lengths.push(tree_hash::BTreeOverlay::new(&self.#idents_b, 0, depth)?.num_nodes());
|
||||
lengths.push(tree_hash::BTreeOverlay::new(&self.#idents_b, 0, depth)?.num_chunks());
|
||||
)*
|
||||
|
||||
tree_hash::BTreeOverlay::from_lengths(chunk_offset, #num_items, depth, lengths)
|
||||
@@ -97,7 +97,10 @@ pub fn subtree_derive(input: TokenStream) -> TokenStream {
|
||||
)*
|
||||
|
||||
// Iterate through the internal nodes, updating them if their children have changed.
|
||||
dbg!("START");
|
||||
dbg!(overlay.offset);
|
||||
cache.update_internal_nodes(&overlay)?;
|
||||
dbg!("END");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user