2021-12-07 18:51:05 +00:00
|
|
|
package util
|
|
|
|
|
2022-04-25 15:42:58 +00:00
|
|
|
import (
|
|
|
|
v2 "github.com/prysmaticlabs/prysm/proto/eth/v2"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
|
|
)
|
2021-12-07 18:51:05 +00:00
|
|
|
|
2022-01-26 07:24:47 +00:00
|
|
|
// NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
|
|
|
|
func NewBeaconBlockBellatrix() *ethpb.SignedBeaconBlockBellatrix {
|
|
|
|
return HydrateSignedBeaconBlockBellatrix(ðpb.SignedBeaconBlockBellatrix{})
|
2021-12-07 18:51:05 +00:00
|
|
|
}
|
2022-04-25 15:42:58 +00:00
|
|
|
|
|
|
|
// NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
|
2022-05-03 16:55:59 +00:00
|
|
|
func NewBlindedBeaconBlockBellatrix() *ethpb.SignedBlindedBeaconBlockBellatrix {
|
|
|
|
return HydrateSignedBlindedBeaconBlockBellatrix(ðpb.SignedBlindedBeaconBlockBellatrix{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewBlindedBeaconBlockBellatrixV2 creates a blinded beacon block with minimum marshalable fields.
|
|
|
|
func NewBlindedBeaconBlockBellatrixV2() *v2.SignedBlindedBeaconBlockBellatrix {
|
2022-04-25 15:42:58 +00:00
|
|
|
return HydrateV2SignedBlindedBeaconBlockBellatrix(&v2.SignedBlindedBeaconBlockBellatrix{})
|
|
|
|
}
|