consensuschain

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(config *chain.Config, tx kv.Tx, blockReader services.FullBlockReader, logger log.Logger) *Reader

func (Reader) BorEventsByBlock

func (cr Reader) BorEventsByBlock(hash common.Hash, number uint64) []rlp.RawValue

func (Reader) BorSpan

func (cr Reader) BorSpan(spanId uint64) *heimdall.Span

func (Reader) BorStartEventId

func (cr Reader) BorStartEventId(hash common.Hash, number uint64) uint64

func (Reader) Config

func (cr Reader) Config() *chain.Config

func (Reader) CurrentFinalizedHeader

func (cr Reader) CurrentFinalizedHeader() *types.Header

func (Reader) CurrentHeader

func (cr Reader) CurrentHeader() *types.Header

func (Reader) CurrentSafeHeader

func (cr Reader) CurrentSafeHeader() *types.Header

func (Reader) FrozenBlocks

func (cr Reader) FrozenBlocks() uint64

func (Reader) FrozenBorBlocks

func (cr Reader) FrozenBorBlocks() uint64

func (Reader) GetBlock

func (cr Reader) GetBlock(hash common.Hash, number uint64) *types.Block

func (Reader) GetHeader

func (cr Reader) GetHeader(hash common.Hash, number uint64) *types.Header

func (Reader) GetHeaderByHash

func (cr Reader) GetHeaderByHash(hash common.Hash) *types.Header

func (Reader) GetHeaderByNumber

func (cr Reader) GetHeaderByNumber(number uint64) *types.Header

func (Reader) GetTd

func (cr Reader) GetTd(hash common.Hash, number uint64) *big.Int

func (Reader) HasBlock

func (cr Reader) HasBlock(hash common.Hash, number uint64) bool

Jump to

Keyboard shortcuts

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