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