Documentation ¶
Index ¶
- func EndStateCommitment(result *flow.ExecutionResult, chunkIndex uint64, systemChunk bool) (flow.StateCommitment, error)
- func FromChunkDataPack(chunk *flow.Chunk, chunkDataPack *flow.ChunkDataPack, header *flow.Header, ...) (*verification.VerifiableChunkData, error)
- func IsSystemChunk(chunkIndex uint64, result *flow.ExecutionResult) bool
- func TransactionOffsetForChunk(chunks flow.ChunkList, chunkIndex uint64) (uint32, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.