beaconblockproposer

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duty

type Duty struct {
	// contains filtered or unexported fields
}

Duty contains information about a beacon block proposal duty.

func NewDuty

func NewDuty(ctx context.Context, slot uint64, validatorIndex uint64) (*Duty, error)

NewDuty creates a new beacon block proposer duty.

func (*Duty) RANDAOReveal

func (d *Duty) RANDAOReveal() []byte

RANDAOReveal provides the RANDAO reveal.

func (*Duty) SetRandaoReveal

func (d *Duty) SetRandaoReveal(randaoReveal []byte)

SetRandaoReveal sets the RANDAO reveal.

func (*Duty) Slot

func (d *Duty) Slot() uint64

Slot provides the slot for the beacon block proposer.

func (*Duty) String

func (d *Duty) String() string

String provides a friendly string for the struct.

func (*Duty) ValidatorIndex

func (d *Duty) ValidatorIndex() uint64

ValidatorIndex provides the validator index for the beacon block proposer.

type Service

type Service interface {
	// Prepare prepares the proposal for a slot.
	Prepare(ctx context.Context, details interface{}) error

	// Propose carries out the proposal for a slot.
	Propose(ctx context.Context, details interface{})
}

Service is the beacon block proposer service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL