reassemble

package
v0.0.0-...-c766eab Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Channels

func Channels(config Config)

Channels loads all transactions from the given input directory that are submitted to the specified batch inbox and then re-assembles all channels & writes the re-assembled channels to the out directory.

Types

type ChannelWithMetadata

type ChannelWithMetadata struct {
	ID             derive.ChannelID    `json:"id"`
	IsReady        bool                `json:"is_ready"`
	InvalidFrames  bool                `json:"invalid_frames"`
	InvalidBatches bool                `json:"invalid_batches"`
	Frames         []FrameWithMetadata `json:"frames"`
	Batches        []derive.BatchV1    `json:"batches"`
}

type Config

type Config struct {
	BatchInbox   common.Address
	InDirectory  string
	OutDirectory string
}

type FrameWithMetadata

type FrameWithMetadata struct {
	TxHash         common.Hash  `json:"transaction_hash"`
	InclusionBlock uint64       `json:"inclusion_block"`
	Timestamp      uint64       `json:"timestamp"`
	BlockHash      common.Hash  `json:"block_hash"`
	Frame          derive.Frame `json:"frame"`
}

func LoadFrames

func LoadFrames(directory string, inbox common.Address) []FrameWithMetadata

Jump to

Keyboard shortcuts

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