prysm-pulse/testing/util/sync_committee.go
Raul Jordan a9a4bb9163
Move Shared/Testutil into Testing (#9659)
* move testutil

* util pkg

* build

* gaz

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:53:46 +00:00

17 lines
378 B
Go

package util
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
}