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.
Click to show internal directories.
Click to hide internal directories.