light

package
v0.2403.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package light implements a consensus light client protocol.

Index

Constants

View Source
const (
	MethodGetLightBlock  = "GetLightBlock"
	MethodGetParameters  = "GetParameters"
	MethodSubmitEvidence = "SubmitEvidence"
)
View Source
const LightProtocolID = "light"

LightProtocolID is a unique protocol identifier for the light client sync protocol.

Variables

View Source
var LightProtocolVersion = version.Version{Major: 1, Minor: 0, Patch: 0}

LightProtocolVersion is the supported version of the light client sync protocol.

Functions

func NewServer

func NewServer(
	p2p rpc.P2P,
	chainContext string,
	consensus consensus.Backend,
	lightClient consensus.LightClient,
) rpc.Server

NewServer creates a new light block sync protocol server.

func ProtocolID

func ProtocolID(chainContext string) core.ProtocolID

ProtocolID returns the light client sync protocol ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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