p2p

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: 13 Imported by: 0

Documentation

Overview

Package p2p implements the Oasis Core libp2p backed light client provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightClientProvidersPool

type LightClientProvidersPool interface {
	// NewLightClientProvider creates a new provider for the CometBFT's light client backed by the
	// Oasis Core LightBlocks P2P protocol.
	//
	// Each instantiated provider is backed by a distinct P2P Peer.
	NewLightClientProvider() api.Provider
}

LightClientProvidersPool manages a pool of light client providers.

Pool ensures that that every instantiated provider is backed by a single distinct libp2p peer at all times.

func NewLightClientProviderPool

func NewLightClientProviderPool(ctx context.Context, chainContext string, chainID string, p2p rpc.P2P) LightClientProvidersPool

NewLightClientProviderPool returns a light client provider pool.

Jump to

Keyboard shortcuts

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