File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/engine/primitives/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ impl ForkchoiceStateTracker {
75
75
/// Returns the latest received [`ForkchoiceState`].
76
76
///
77
77
/// Caution: this can be invalid.
78
- pub const fn latest_state ( & self ) -> Option < ForkchoiceState > {
79
- self . last_valid
78
+ pub fn latest_state ( & self ) -> Option < ForkchoiceState > {
79
+ self . latest . as_ref ( ) . map ( |s| s . state )
80
80
}
81
81
82
82
/// Returns the last valid [`ForkchoiceState`].
@@ -122,7 +122,6 @@ impl ForkchoiceStateTracker {
122
122
/// Represents a forkchoice update and tracks the status we assigned to it.
123
123
#[ derive( Debug , Clone ) ]
124
124
pub ( crate ) struct ReceivedForkchoiceState {
125
- #[ cfg_attr( not( test) , expect( dead_code) ) ]
126
125
state : ForkchoiceState ,
127
126
status : ForkchoiceStatus ,
128
127
}
You can’t perform that action at this time.
0 commit comments