@@ -627,7 +627,7 @@ where
627627 op : & InvalidationOperation ,
628628 ) -> Result < ( ) , Error < T :: Error > > {
629629 self . proto_array
630- . process_execution_payload_invalidation :: < E > ( op)
630+ . process_execution_payload_invalidation :: < E > ( op, self . finalized_checkpoint ( ) )
631631 . map_err ( Error :: FailedToProcessInvalidExecutionPayload )
632632 }
633633
@@ -908,6 +908,8 @@ where
908908 unrealized_finalized_checkpoint : Some ( unrealized_finalized_checkpoint) ,
909909 } ,
910910 current_slot,
911+ self . justified_checkpoint ( ) ,
912+ self . finalized_checkpoint ( ) ,
911913 ) ?;
912914
913915 Ok ( ( ) )
@@ -1288,7 +1290,7 @@ where
12881290 /// Return `true` if `block_root` is equal to the finalized checkpoint, or a known descendant of it.
12891291 pub fn is_finalized_checkpoint_or_descendant ( & self , block_root : Hash256 ) -> bool {
12901292 self . proto_array
1291- . is_finalized_checkpoint_or_descendant :: < E > ( block_root)
1293+ . is_finalized_checkpoint_or_descendant :: < E > ( block_root, self . finalized_checkpoint ( ) )
12921294 }
12931295
12941296 pub fn is_descendant ( & self , ancestor_root : Hash256 , descendant_root : Hash256 ) -> bool {
@@ -1508,7 +1510,9 @@ where
15081510 /// be instantiated again later.
15091511 pub fn to_persisted ( & self ) -> PersistedForkChoice {
15101512 PersistedForkChoice {
1511- proto_array : self . proto_array ( ) . as_ssz_container ( ) ,
1513+ proto_array : self
1514+ . proto_array ( )
1515+ . as_ssz_container ( self . justified_checkpoint ( ) , self . finalized_checkpoint ( ) ) ,
15121516 queued_attestations : self . queued_attestations ( ) . to_vec ( ) ,
15131517 }
15141518 }
0 commit comments