mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
3cf385fe91
* unrealized justification API * Add time elapse logging * add unrealized justification checkpoint * Use UnrealizedJustificationCheckpoint * Refactor unrealized checkpoints * Move logic to state package * do not use ctx on a sum * fix ctx * add tests * fix conflicts * unhandled error * Fix ordering in computing checkpoints * gaz * keep finalized checkpoint if nothing justified * gaz * copy checkpoint * fix check for nil * Add state package tests * Add tests * Radek's review * add more tests * Update beacon-chain/core/epoch/precompute/justification_finalization.go Co-authored-by: terencechain <terence@prysmaticlabs.com> * deduplicate to stateutil * missing file * Add stateutil test * Minor refactor, don't export certain things * Fix exports in tests * remove unused error Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
42 lines
1.7 KiB
Go
42 lines
1.7 KiB
Go
package v1
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// CurrentEpochParticipation is not supported for phase 0 beacon state.
|
|
func (*BeaconState) CurrentEpochParticipation() ([]byte, error) {
|
|
return nil, errors.New("CurrentEpochParticipation is not supported for phase 0 beacon state")
|
|
}
|
|
|
|
// PreviousEpochParticipation is not supported for phase 0 beacon state.
|
|
func (*BeaconState) PreviousEpochParticipation() ([]byte, error) {
|
|
return nil, errors.New("PreviousEpochParticipation is not supported for phase 0 beacon state")
|
|
}
|
|
|
|
// 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")
|
|
}
|
|
|
|
// InactivityScores is not supported for phase 0 beacon state.
|
|
func (*BeaconState) InactivityScores() ([]uint64, error) {
|
|
return nil, errors.New("InactivityScores is not supported for phase 0 beacon state")
|
|
}
|
|
|
|
// CurrentSyncCommittee is not supported for phase 0 beacon state.
|
|
func (*BeaconState) CurrentSyncCommittee() (*ethpb.SyncCommittee, error) {
|
|
return nil, errors.New("CurrentSyncCommittee is not supported for phase 0 beacon state")
|
|
}
|
|
|
|
// NextSyncCommittee is not supported for phase 0 beacon state.
|
|
func (*BeaconState) NextSyncCommittee() (*ethpb.SyncCommittee, error) {
|
|
return nil, errors.New("NextSyncCommittee is not supported for phase 0 beacon state")
|
|
}
|
|
|
|
// LatestExecutionPayloadHeader is not supported for phase 0 beacon state.
|
|
func (*BeaconState) LatestExecutionPayloadHeader() (*ethpb.ExecutionPayloadHeader, error) {
|
|
return nil, errors.New("LatestExecutionPayloadHeader is not supported for phase 0 beacon state")
|
|
}
|