finality

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

nolint

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotInRejectedList = errors.New("MilestoneID not in rejected list")
)

Functions

func CurrentFinalizedBlock

func CurrentFinalizedBlock(tx kv.Tx, number uint64) *types.Block

CurrentFinalizedBlock retrieves the current finalized block of the canonical chain. The block is retrieved from the blockchain's internal cache.

func GetFinalizedBlockNumber

func GetFinalizedBlockNumber(tx kv.Tx) uint64

func RetryHeimdallHandler

func RetryHeimdallHandler(fn heimdallHandler, config *config, tickerDuration time.Duration, timeout time.Duration, fnName string)

func Whitelist

func Whitelist(heimdall heimdall.IHeimdallClient, borDB kv.RwDB, chainDB kv.RwDB, blockReader services.BlockReader, logger log.Logger, borAPI BorAPI, closeCh chan struct{})

Types

type BorAPI

type BorAPI interface {
	GetRootHash(start uint64, end uint64) (string, error)
}

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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