Skip to content

Commit a53bff6

Browse files
committed
update message defination
Signed-off-by: noelwei <[email protected]>
1 parent 0b0dbb4 commit a53bff6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common/types/message/message.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const (
4444

4545
// ChunkTaskDetail is a type containing ChunkTask detail for chunk task.
4646
type ChunkTaskDetail struct {
47+
// use one of the string of EuclidFork / EuclidV2Fork
48+
ForkName string `json:"fork_name"`
4749
BlockHashes []common.Hash `json:"block_hashes"`
4850
PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
4951
}
@@ -93,6 +95,8 @@ func (e *Byte48) UnmarshalJSON(input []byte) error {
9395

9496
// BatchTaskDetail is a type containing BatchTask detail.
9597
type BatchTaskDetail struct {
98+
// use one of the string of EuclidFork / EuclidV2Fork
99+
ForkName string `json:"fork_name"`
96100
ChunkInfos []*ChunkInfo `json:"chunk_infos"`
97101
ChunkProofs []ChunkProof `json:"chunk_proofs"`
98102
BatchHeader interface{} `json:"batch_header"`
@@ -104,7 +108,10 @@ type BatchTaskDetail struct {
104108

105109
// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.
106110
type BundleTaskDetail struct {
111+
// use one of the string of EuclidFork / EuclidV2Fork
112+
ForkName string `json:"fork_name"`
107113
BatchProofs []BatchProof `json:"batch_proofs"`
114+
// TODO: add `bundle_info` field for sanity check
108115
}
109116

110117
// ChunkInfo is for calculating pi_hash for chunk

0 commit comments

Comments
 (0)