2021-06-30 15:06:19 +00:00
|
|
|
package v1
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/pkg/errors"
|
2022-08-16 12:20:13 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/consensus-types/interfaces"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
2021-06-30 15:06:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// AppendCurrentParticipationBits is not supported for phase 0 beacon state.
|
2021-12-01 18:56:07 +00:00
|
|
|
func (*BeaconState) AppendCurrentParticipationBits(_ byte) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("AppendCurrentParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// AppendPreviousParticipationBits is not supported for phase 0 beacon state.
|
2021-12-01 18:56:07 +00:00
|
|
|
func (*BeaconState) AppendPreviousParticipationBits(_ byte) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("AppendPreviousParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// AppendInactivityScore is not supported for phase 0 beacon state.
|
2021-12-01 18:56:07 +00:00
|
|
|
func (*BeaconState) AppendInactivityScore(_ uint64) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("AppendInactivityScore is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCurrentSyncCommittee is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) SetCurrentSyncCommittee(_ *ethpb.SyncCommittee) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("SetCurrentSyncCommittee is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNextSyncCommittee is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) SetNextSyncCommittee(_ *ethpb.SyncCommittee) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("SetNextSyncCommittee is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetPreviousParticipationBits is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) SetPreviousParticipationBits(_ []byte) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("SetPreviousParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCurrentParticipationBits is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) SetCurrentParticipationBits(_ []byte) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("SetCurrentParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
2022-03-23 15:18:02 +00:00
|
|
|
// ModifyPreviousParticipationBits is not supported for phase 0 beacon state.
|
2022-06-27 13:34:38 +00:00
|
|
|
func (b *BeaconState) ModifyPreviousParticipationBits(_ func(val []byte) ([]byte, error)) error {
|
2022-03-23 15:18:02 +00:00
|
|
|
return errors.New("ModifyPreviousParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
|
|
|
// ModifyCurrentParticipationBits is not supported for phase 0 beacon state.
|
2022-06-27 13:34:38 +00:00
|
|
|
func (b *BeaconState) ModifyCurrentParticipationBits(_ func(val []byte) ([]byte, error)) error {
|
2022-03-23 15:18:02 +00:00
|
|
|
return errors.New("ModifyCurrentParticipationBits is not supported for phase 0 beacon state")
|
|
|
|
}
|
|
|
|
|
2021-06-30 15:06:19 +00:00
|
|
|
// SetInactivityScores is not supported for phase 0 beacon state.
|
2021-12-07 17:52:39 +00:00
|
|
|
func (*BeaconState) SetInactivityScores(_ []uint64) error {
|
2021-06-30 15:06:19 +00:00
|
|
|
return errors.New("SetInactivityScores is not supported for phase 0 beacon state")
|
|
|
|
}
|
2021-11-22 23:56:23 +00:00
|
|
|
|
|
|
|
// SetLatestExecutionPayloadHeader is not supported for phase 0 beacon state.
|
2022-07-13 01:49:38 +00:00
|
|
|
func (*BeaconState) SetLatestExecutionPayloadHeader(_ interfaces.ExecutionData) error {
|
2021-11-22 23:56:23 +00:00
|
|
|
return errors.New("SetLatestExecutionPayloadHeader is not supported for phase 0 beacon state")
|
|
|
|
}
|