blockprovider

package
v0.0.0-...-c2414a3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockProvider

type BlockProvider struct {
	// contains filtered or unexported fields
}

func NewBlockProvider

func NewBlockProvider(
	state sm.State,
	store *store.BlockStore,
	celestiaCfg *relayer.CelestiaConfig,
	genDoc *cmttypes.GenesisDoc,
	clientCtx client.Context,
	cmtConfig *cfg.Config,
	celestiaNamespaceStr string,
	chainID string,
) *BlockProvider

func (*BlockProvider) GetVerifiedBlock

func (bp *BlockProvider) GetVerifiedBlock(height int64) *protoblocktypes.Block

func (*BlockProvider) QueryCelestiaClientState

func (bp *BlockProvider) QueryCelestiaClientState(ctx context.Context) (*lc.ClientState, error)

func (*BlockProvider) SetLogger

func (bp *BlockProvider) SetLogger(l log.Logger)

func (*BlockProvider) Start

func (bp *BlockProvider) Start(celestiaPollInterval time.Duration)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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