Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkDataPackRequest ¶ added in v0.17.0
type ChunkDataPackRequest struct {
ChunkID flow.Identifier
Height uint64 // block height of execution result of the chunk, used to drop chunk requests of sealed heights.
Agrees flow.IdentifierList // execution node ids that generated the result of chunk.
Disagrees flow.IdentifierList // execution node ids that generated a conflicting result with result of chunk.
Targets flow.IdentityList // list of all execution nodes identity at the block height of this chunk (including non-responders).
}
ChunkDataPackRequest is an internal data structure in fetcher engine that is passed between the engine and requester module. It conveys required information for requesting a chunk data pack.
func (ChunkDataPackRequest) Checksum ¶ added in v0.17.0
func (c ChunkDataPackRequest) Checksum() flow.Identifier
func (ChunkDataPackRequest) ID ¶ added in v0.17.0
func (c ChunkDataPackRequest) ID() flow.Identifier
func (ChunkDataPackRequest) SampleTargets ¶ added in v0.17.0
func (c ChunkDataPackRequest) SampleTargets(count int) flow.IdentifierList
SampleTargets returns identifier of execution nodes that can be asked for the chunk data pack, based on the agree and disagree execution nodes of the chunk data pack request.
type ChunkDataPackRequestList ¶ added in v0.17.0
type ChunkDataPackRequestList []*ChunkDataPackRequest
type ChunkStatus ¶ added in v0.17.0
type ChunkStatus struct {
ChunkIndex uint64
ExecutionResult *flow.ExecutionResult
BlockHeight uint64
}
ChunkStatus is a data struct represents the current status of fetching chunk data pack for the chunk.
func (ChunkStatus) Checksum ¶ added in v0.17.0
func (s ChunkStatus) Checksum() flow.Identifier
func (ChunkStatus) ChunkLocatorID ¶ added in v0.17.0
func (s ChunkStatus) ChunkLocatorID() flow.Identifier
func (ChunkStatus) ID ¶ added in v0.17.0
func (s ChunkStatus) ID() flow.Identifier
type ChunkStatusList ¶ added in v0.17.0
type ChunkStatusList []*ChunkStatus
func (ChunkStatusList) Chunks ¶ added in v0.17.0
func (l ChunkStatusList) Chunks() flow.ChunkList
type ReceiptDataPack ¶
type ReceiptDataPack struct {
Receipt *flow.ExecutionReceipt
OriginID flow.Identifier
Ctx context.Context // used for span tracing
}
ReceiptDataPack represents an execution receipt with some metadata. This is an internal entity for verification node.
func (*ReceiptDataPack) Checksum ¶
func (r *ReceiptDataPack) Checksum() flow.Identifier
Checksum returns the checksum of the ReceiptDataPack.
func (*ReceiptDataPack) ID ¶
func (r *ReceiptDataPack) ID() flow.Identifier
ID returns the unique identifier for the ReceiptDataPack which is the id of its execution receipt.
type ResultDataPack ¶
type ResultDataPack struct {
ExecutorID flow.Identifier
ExecutionResult *flow.ExecutionResult
}
ResultDataPack represents an execution result with some metadata. This is an internal entity for verification node.
func (*ResultDataPack) Checksum ¶
func (r *ResultDataPack) Checksum() flow.Identifier
Checksum returns the checksum of the ResultDataPack.
func (*ResultDataPack) ID ¶
func (r *ResultDataPack) ID() flow.Identifier
ID returns the unique identifier for the ResultDataPack which is the id of its execution result.
type VerifiableChunkData ¶ added in v0.17.0
type VerifiableChunkData struct {
IsSystemChunk bool // indicates whether this is a system chunk
Chunk *flow.Chunk // the chunk to be verified
Header *flow.Header // BlockHeader that contains this chunk
Result *flow.ExecutionResult // execution result of this block
Collection *flow.Collection // collection corresponding to the chunk
ChunkDataPack *flow.ChunkDataPack // chunk data package needed to verify this chunk
EndState flow.StateCommitment // state commitment at the end of this chunk
TransactionOffset uint32 // index of the first transaction in a chunk within a block
}
VerifiableChunkData represents a ready-to-verify chunk It contains the execution result as well as all resources needed to verify it