convert

package
v0.37.24-programs-cach... Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 flow.ProtocolSnapshotExecutionSubset,
	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