-
Notifications
You must be signed in to change notification settings - Fork 178
/
collection.go
41 lines (35 loc) · 1.26 KB
/
collection.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package messages
import (
"github.com/onflow/flow-go/model/cluster"
"github.com/onflow/flow-go/model/flow"
)
// SubmitCollectionGuarantee is a request to submit the given collection
// guarantee to consensus nodes. Only valid as a node-local message.
type SubmitCollectionGuarantee struct {
Guarantee flow.CollectionGuarantee
}
// CollectionRequest request all transactions from a collection with the given
// fingerprint.
type CollectionRequest struct {
ID flow.Identifier
Nonce uint64 // so that we aren't deduplicated by the network layer
}
// CollectionResponse is a response to a request for a collection.
type CollectionResponse struct {
Collection flow.Collection
Nonce uint64 // so that we aren't deduplicated by the network layer
}
// ClusterBlockProposal is a proposal for a block in collection node cluster
// consensus. The header contains information about consensus state and the
// payload contains the proposed collection (may be empty).
type ClusterBlockProposal struct {
Header *flow.Header
Payload *cluster.Payload
}
// ClusterBlockVote is a vote for a proposed block in collection node cluster
// consensus; effectively a vote for a particular collection.
type ClusterBlockVote struct {
BlockID flow.Identifier
View uint64
SigData []byte
}