2021-07-26 20:55:30 +00:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/pkg/errors"
|
2021-07-29 21:45:17 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-07-26 20:55:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// PreviousEpochAttestations is not supported for HF1 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) PreviousEpochAttestations() ([]*ethpb.PendingAttestation, error) {
|
2021-07-26 20:55:30 +00:00
|
|
|
return nil, errors.New("PreviousEpochAttestations is not supported for hard fork 1 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// CurrentEpochAttestations is not supported for HF1 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) CurrentEpochAttestations() ([]*ethpb.PendingAttestation, error) {
|
2021-07-26 20:55:30 +00:00
|
|
|
return nil, errors.New("CurrentEpochAttestations is not supported for hard fork 1 beacon state")
|
|
|
|
}
|
2021-11-22 23:56:23 +00:00
|
|
|
|
|
|
|
// LatestExecutionPayloadHeader is not supported for hard fork 1 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 hard fork 1 beacon state")
|
|
|
|
}
|