func (d *Duty) SetAccount(account e2wtypes.Account) {
	d.account = account
}
SetAccount sets the account.
package beaconblockproposer
import (
	"context"
	"fmt"
	"github.com/attestantio/go-eth2-client/spec/phase0"
	e2wtypes "github.com/wealdtech/go-eth2-wallet-types/v2"
)
type Duty struct {
	slot           phase0.Slot
	validatorIndex phase0.ValidatorIndex
	randaoReveal phase0.BLSSignature
	account e2wtypes.Account
}
func NewDuty(slot phase0.Slot, validatorIndex phase0.ValidatorIndex) *Duty {
	return &Duty{
		slot:           slot,
		validatorIndex: validatorIndex,
	}
}
func (d *Duty) Slot() phase0.Slot {
	return d.slot
}
func (d *Duty) ValidatorIndex() phase0.ValidatorIndex {
	return d.validatorIndex
}
func (d *Duty) String() string {
	return fmt.Sprintf("beacon block proposal %d@%d", d.validatorIndex, d.slot)
}
func (d *Duty) SetRandaoReveal(randaoReveal phase0.BLSSignature) {
	d.randaoReveal = randaoReveal
}
func (d *Duty) RANDAOReveal() phase0.BLSSignature {
	return d.randaoReveal
}