pull/4548/head
Konstantin 1 year ago committed by GitHub
parent d49715e8f7
commit 57dd5f2678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      shard/committee/assignment.go

@ -25,19 +25,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
// ValidatorListProvider ..
type ValidatorListProvider interface {
Compute(
epoch *big.Int, reader DataProvider,
) (*shard.State, error)
ReadFromDB(epoch *big.Int, reader DataProvider) (*shard.State, error)
}
// Reader is committee.Reader and it is the API that committee membership assignment needs
type Reader interface {
ValidatorListProvider
}
// StakingCandidatesReader .. // StakingCandidatesReader ..
type StakingCandidatesReader interface { type StakingCandidatesReader interface {
CurrentBlock() *types.Block CurrentBlock() *types.Block
@ -272,7 +259,7 @@ type partialStakingEnabled struct{}
var ( var (
// WithStakingEnabled .. // WithStakingEnabled ..
WithStakingEnabled Reader = partialStakingEnabled{} WithStakingEnabled = partialStakingEnabled{}
// ErrComputeForEpochInPast .. // ErrComputeForEpochInPast ..
ErrComputeForEpochInPast = errors.New("cannot compute for epoch in past") ErrComputeForEpochInPast = errors.New("cannot compute for epoch in past")
) )

Loading…
Cancel
Save