github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/state/v1/unsupported_setters.go (about) 1 package v1 2 3 import ( 4 "github.com/pkg/errors" 5 pbp2p "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" 6 ) 7 8 // AppendCurrentParticipationBits is not supported for phase 0 beacon state. 9 func (b *BeaconState) AppendCurrentParticipationBits(val byte) error { 10 return errors.New("AppendCurrentParticipationBits is not supported for phase 0 beacon state") 11 } 12 13 // AppendPreviousParticipationBits is not supported for phase 0 beacon state. 14 func (b *BeaconState) AppendPreviousParticipationBits(val byte) error { 15 return errors.New("AppendPreviousParticipationBits is not supported for phase 0 beacon state") 16 } 17 18 // AppendInactivityScore is not supported for phase 0 beacon state. 19 func (b *BeaconState) AppendInactivityScore(s uint64) error { 20 return errors.New("AppendInactivityScore is not supported for phase 0 beacon state") 21 } 22 23 // SetCurrentSyncCommittee is not supported for phase 0 beacon state. 24 func (b *BeaconState) SetCurrentSyncCommittee(val *pbp2p.SyncCommittee) error { 25 return errors.New("SetCurrentSyncCommittee is not supported for phase 0 beacon state") 26 } 27 28 // SetNextSyncCommittee is not supported for phase 0 beacon state. 29 func (b *BeaconState) SetNextSyncCommittee(val *pbp2p.SyncCommittee) error { 30 return errors.New("SetNextSyncCommittee is not supported for phase 0 beacon state") 31 } 32 33 // SetPreviousParticipationBits is not supported for phase 0 beacon state. 34 func (b *BeaconState) SetPreviousParticipationBits(val []byte) error { 35 return errors.New("SetPreviousParticipationBits is not supported for phase 0 beacon state") 36 } 37 38 // SetCurrentParticipationBits is not supported for phase 0 beacon state. 39 func (b *BeaconState) SetCurrentParticipationBits(val []byte) error { 40 return errors.New("SetCurrentParticipationBits is not supported for phase 0 beacon state") 41 } 42 43 // SetInactivityScores is not supported for phase 0 beacon state. 44 func (b *BeaconState) SetInactivityScores(val []uint64) error { 45 return errors.New("SetInactivityScores is not supported for phase 0 beacon state") 46 }