Documentation ¶
Index ¶
- type GRPCClient
- func (vanClient *GRPCClient) CanonicalHeadSlot() (types.Slot, error)
- func (ec *GRPCClient) Close()
- func (vanClient *GRPCClient) StreamMinimalConsensusInfo(epoch uint64) (stream ethpb.BeaconChain_StreamMinimalConsensusInfoClient, err error)
- func (vanClient *GRPCClient) StreamNewPendingBlocks(blockRoot []byte, fromSlot types.Slot) (stream ethpb.BeaconChain_StreamNewPendingBlocksClient, err error)
- type VanguardClient
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 (*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) StreamMinimalConsensusInfo ¶
func (vanClient *GRPCClient) StreamMinimalConsensusInfo(epoch uint64) ( stream ethpb.BeaconChain_StreamMinimalConsensusInfoClient, err error, )
func (*GRPCClient) StreamNewPendingBlocks ¶
func (vanClient *GRPCClient) StreamNewPendingBlocks(blockRoot []byte, fromSlot types.Slot) ( stream ethpb.BeaconChain_StreamNewPendingBlocksClient, err error, )
StreamNewPendingBlocks
type VanguardClient ¶
type VanguardClient interface { CanonicalHeadSlot() (types.Slot, error) StreamNewPendingBlocks(blockRoot []byte, fromSlot types.Slot) (ethpb.BeaconChain_StreamNewPendingBlocksClient, error) StreamMinimalConsensusInfo(epoch uint64) (stream ethpb.BeaconChain_StreamMinimalConsensusInfoClient, err error) Close() }
Click to show internal directories.
Click to hide internal directories.