Compare commits

...

2 Commits

Author SHA1 Message Date
Potuz
feca3ac1ef Merge branch 'develop' into dont_fcu_to_nil 2025-03-20 14:14:56 -03:00
Potuz
35559253f5 Do not send zero hash on FCU 2025-02-18 09:52:16 -03:00
2 changed files with 7 additions and 0 deletions

View File

@@ -69,6 +69,10 @@ func (s *Service) notifyForkchoiceUpdate(ctx context.Context, arg *fcuConfig) (*
SafeBlockHash: justifiedHash[:],
FinalizedBlockHash: finalizedHash[:],
}
if len(fcs.HeadBlockHash) != 32 || [32]byte(fcs.HeadBlockHash) == [32]byte{} {
log.Error("Sending nil head block hash to execution engine")
return nil, nil
}
if arg.attributes == nil {
arg.attributes = payloadattribute.EmptyWithVersion(headBlk.Version())
}

View File

@@ -0,0 +1,3 @@
### Ignored
- Do not send FCU to zero hash.