light

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package light implements a CometBFT light client service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, dataDir string, genesis *genesisAPI.Document, c consensus.Backend, p2p rpc.P2P) (api.ClientService, error)

New creates a new CometBFT light client service backed by the local full node.

This light client is initialized with a trusted blocks obtained from the local consensus backend.

func NewInternalClient

func NewInternalClient(ctx context.Context, chainContext string, p2p rpc.P2P, cfg api.ClientConfig) (api.Client, error)

NewInternalClient creates an internal and non-persistent light client.

This client is instantiated from the provided (obtained out of bound) trusted block and is used internally for CometBFT's state sync protocol.

Types

This section is empty.

Directories

Path Synopsis
Package api provides a light CometBFT consensus backend API.
Package api provides a light CometBFT consensus backend API.
Package p2p implements the Oasis Core libp2p backed light client provider.
Package p2p implements the Oasis Core libp2p backed light client provider.

Jump to

Keyboard shortcuts

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