convert

package
v0.37.20-verify-execut... Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndStateCommitment

func EndStateCommitment(result *flow.ExecutionResult, chunkIndex uint64, systemChunk bool) (flow.StateCommitment, error)

EndStateCommitment computes the end state of the given chunk.

func FromChunkDataPack

func FromChunkDataPack(
	chunk *flow.Chunk,
	chunkDataPack *flow.ChunkDataPack,
	header *flow.Header,
	snapshot protocol.Snapshot,
	result *flow.ExecutionResult,
) (*verification.VerifiableChunkData, error)

func IsSystemChunk

func IsSystemChunk(chunkIndex uint64, result *flow.ExecutionResult) bool

IsSystemChunk returns true if `chunkIndex` points to a system chunk in `result`. Otherwise, it returns false. In the current version, a chunk is a system chunk if it is the last chunk of the execution result.

func TransactionOffsetForChunk

func TransactionOffsetForChunk(chunks flow.ChunkList, chunkIndex uint64) (uint32, error)

TransactionOffsetForChunk calculates transaction offset for a given chunk which is the index of the first transaction of this chunk within the whole block

Types

This section is empty.

Jump to

Keyboard shortcuts

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