mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
17 lines
382 B
Go
17 lines
382 B
Go
package testutil
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// HydrateSyncCommittee hydrates the provided sync committee message.
|
|
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
|
|
}
|