Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duty ¶
type Duty struct {
NodeID uint64
Duty *ethpb.DutiesResponse_Duty
// ValidatorPK is the validator's public key
ValidatorPK *bls.PublicKey
// ShareSK is this node's share secret key
Committee map[uint64]*proto.Node
}
Duty struct TODO: need to remove
type Queue ¶
type Queue interface {
// Next returns the next slot with its duties at its time
Next(pubKey []byte) (uint64, *ethpb.DutiesResponse_Duty, bool, error)
// Schedule schedules execution of the given slot and puts it into the queue
Schedule(pubKey []byte, slot uint64, duty *ethpb.DutiesResponse_Duty) error
}
Queue represents the behavior of the slot queue
Click to show internal directories.
Click to hide internal directories.