vanguard

package
v0.0.0-...-43dcd37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

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

GRPCClient

func Dial

func Dial(ctx context.Context, rawurl string, grpcRetryDelay time.Duration,
	grpcRetries uint, maxCallRecvMsgSize int) (*GRPCClient, error)

Dial connects a client to the given URL.

func (*GRPCClient) CanonicalHeadSlot

func (vanClient *GRPCClient) CanonicalHeadSlot() (types.Slot, error)

CanonicalHeadSlot returns the slot of canonical block currently found in the beacon chain via RPC.

func (*GRPCClient) Close

func (ec *GRPCClient) Close()

Close

func (*GRPCClient) NextEpochProposerList

func (vanClient *GRPCClient) NextEpochProposerList() (*ethpb.ValidatorAssignments, error)

NextEpochProposerList

type VanguardClient

type VanguardClient interface {
	CanonicalHeadSlot() (types.Slot, error)
	NextEpochProposerList() (*ethpb.ValidatorAssignments, error)
	Close()
}

Jump to

Keyboard shortcuts

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