2021-06-30 15:06:19 +00:00
|
|
|
package v1
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/pkg/errors"
|
2021-07-29 21:45:17 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-06-30 15:06:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// CurrentEpochParticipation is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) CurrentEpochParticipation() ([]byte, error) {
|
2021-06-30 15:06:19 +00:00
|
|
|
return nil, errors.New("CurrentEpochParticipation is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// PreviousEpochParticipation is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) PreviousEpochParticipation() ([]byte, error) {
|
2021-06-30 15:06:19 +00:00
|
|
|
return nil, errors.New("PreviousEpochParticipation is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
2022-05-27 16:38:00 +00:00
|
|
|
// UnrealizedCheckpointBalances is not supported for phase 0 beacon state.
|
|
|
|
func (*BeaconState) UnrealizedCheckpointBalances() (uint64, uint64, uint64, error) {
|
|
|
|
return 0, 0, 0, errors.New("UnrealizedCheckpointBalances is not supported for phase0 beacon state")
|
|
|
|
}
|
|
|
|
|
2021-06-30 15:06:19 +00:00
|
|
|
// InactivityScores is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) InactivityScores() ([]uint64, error) {
|
2021-06-30 15:06:19 +00:00
|
|
|
return nil, errors.New("InactivityScores is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// CurrentSyncCommittee is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) CurrentSyncCommittee() (*ethpb.SyncCommittee, error) {
|
2021-06-30 15:06:19 +00:00
|
|
|
return nil, errors.New("CurrentSyncCommittee is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// NextSyncCommittee is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) NextSyncCommittee() (*ethpb.SyncCommittee, error) {
|
2021-06-30 15:06:19 +00:00
|
|
|
return nil, errors.New("NextSyncCommittee is not supported for phase 0 beacon state")
|
|
|
|
}
|
2021-11-22 23:56:23 +00:00
|
|
|
|
|
|
|
// LatestExecutionPayloadHeader is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) LatestExecutionPayloadHeader() (*ethpb.ExecutionPayloadHeader, error) {
|
2021-11-22 23:56:23 +00:00
|
|
|
return nil, errors.New("LatestExecutionPayloadHeader is not supported for phase 0 beacon state")
|
|
|
|
}
|