implement scoring mechanisms and plumbing

This commit is contained in:
hopinheimer
2026-02-24 17:40:11 -05:00
parent 3e3ccba1a6
commit d5c5077a31
26 changed files with 1573 additions and 413 deletions

View File

@@ -1498,7 +1498,7 @@ async fn weights_after_resetting_optimistic_status() {
.fork_choice_read_lock()
.proto_array()
.iter_nodes(&head.head_block_root())
.map(|node| (node.root, node.weight))
.map(|node| (node.root(), node.weight()))
.collect::<HashMap<_, _>>();
rig.invalidate_manually(roots[1]).await;
@@ -1518,7 +1518,7 @@ async fn weights_after_resetting_optimistic_status() {
.fork_choice_read_lock()
.proto_array()
.iter_nodes(&head.head_block_root())
.map(|node| (node.root, node.weight))
.map(|node| (node.root(), node.weight()))
.collect::<HashMap<_, _>>();
assert_eq!(original_weights, new_weights);