prysm-pulse/testing/util/sync_committee.go

17 lines
378 B
Go
Raw Normal View History

package util
import (
2021-08-10 19:55:24 +00:00
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
)
// HydrateSyncCommittee hydrates the provided sync committee message.
2021-08-10 19:55:24 +00:00
func HydrateSyncCommittee(s *ethpb.SyncCommitteeMessage) *ethpb.SyncCommitteeMessage {
if s.Signature == nil {
s.Signature = make([]byte, 96)
}
if s.BlockRoot == nil {
s.BlockRoot = make([]byte, 32)
}
return s
}