diff --git a/consensus/proto_array/src/proto_array.rs b/consensus/proto_array/src/proto_array.rs index 933e9eb078..d806547cc0 100644 --- a/consensus/proto_array/src/proto_array.rs +++ b/consensus/proto_array/src/proto_array.rs @@ -535,7 +535,7 @@ impl ProtoArray { .parent_root .and_then(|parent| self.indices.get(&parent).copied()); - let node = if !spec.fork_name_at_slot::(current_slot).gloas_enabled() { + let node = if !spec.fork_name_at_slot::(block.slot).gloas_enabled() { ProtoNode::V17(ProtoNodeV17 { slot: block.slot, root: block.root,