communication

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BeaconBlocksByRangeTopic = "/beacon_blocks_by_range"
View Source
const BeaconBlocksByRootTopic = "/beacon_blocks_by_root"
View Source
const EncodingProtocol = "/ssz_snappy"
View Source
const GoodbyeTopic = "/goodbye"
View Source
const LightClientBootstrapTopic = "/light_client_bootstrap"
View Source
const LightClientFinalityUpdateTopic = "/light_client_finality_update"
View Source
const LightClientOptimisticUpdateTopic = "/light_client_optimistic_update"
View Source
const LightClientUpdatesByRangeTopic = "/light_client_updates_by_range"
View Source
const MaximumRequestClientUpdates = 128
View Source
const MetadataTopic = "/metadata"

Request and Response topics

View Source
const PingTopic = "/ping"
View Source
const ProtocolPrefix = "/eth2/beacon_chain/req"
View Source
const Schema1 = "/1"

request and response versions

View Source
const Schema2 = "/2"
View Source
const StatusTopic = "/status"

Variables

Request and Response protocol ids

View Source
var NoRequestHandlers = map[string]bool{
	MetadataProtocolV1:          true,
	MetadataProtocolV2:          true,
	LightClientFinalityUpdateV1: true,
}

Functions

func SendRequestRawToPeer

func SendRequestRawToPeer(ctx context.Context, host host.Host, data []byte, topic string, peerId peer.ID) ([]byte, bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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