bcast

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package bcast provides the core workflow's broadcaster component that broadcasts/submits aggregated signed duty data to the beacon node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

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

func New

func New(ctx context.Context, eth2Svc eth2client.Service) (Broadcaster, error)

New returns a new broadcaster instance.

func (Broadcaster) Broadcast

func (b Broadcaster) Broadcast(ctx context.Context, duty core.Duty,
	pubkey core.PubKey, aggData core.SignedData,
) (err error)

Broadcast broadcasts the aggregated signed duty data object to the beacon-node.

Jump to

Keyboard shortcuts

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