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-07-29 21:45:17 +00:00
|
|
|
func (b *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-07-29 21:45:17 +00:00
|
|
|
func (b *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")
|
|
|
|
}
|