blockprovider

package
v0.0.0-...-4ef5390 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 31 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, *cmttypes.Commit)

func (*BlockProvider) GetVoteExtensionsEnableHeight

func (bp *BlockProvider) GetVoteExtensionsEnableHeight() int64

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)

type Consensus

type Consensus struct {
	Params Params `json:"params"`
}

type Genesis

type Genesis struct {
	Consensus Consensus `json:"consensus"`
}

type Params

type Params struct {
	ABCI cmttypes.ABCIParams `json:"abci"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳