mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 17:23:41 +00:00
implement scoring mechanisms and plumbing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user