utils

package
v0.6.0-develop Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertShardInfoToBlockStatus

func ConvertShardInfoToBlockStatus(
	shardInfo *types.MultiShardInfo,
	verifiedStatus types.Status, finalizedSlot uint64) (blockStatus *types.BlockStatus)

ConvertShardInfoToBlockStatus converts sharding info to blockStatus

func Debounce

func Debounce(
	ctx context.Context,
	interval time.Duration,
	eventsChan <-chan interface{},
	handler func(interface{}),
)

This will trigger handler only after certain timeout

func PrepareMultiShardData

func PrepareMultiShardData(
	vanShardInfo *types.VanguardShardInfo,
	panHeader *eth1Types.Header,
	totalExecShardCnt, shardsPerVanBlock uint64) *types.MultiShardInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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