Skip to content

Commit 26dbf42

Browse files
committed
feat: fix issue with not specifying difficulty
1 parent dbdbc88 commit 26dbf42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rollup/da_syncer/da/commitV0.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ func (c *CommitBatchDAV0) Blocks() ([]*PartialBlock, error) {
105105

106106
block := NewPartialBlock(
107107
&PartialHeader{
108-
Number: daBlock.BlockNumber,
109-
Time: daBlock.Timestamp,
110-
BaseFee: daBlock.BaseFee,
111-
GasLimit: daBlock.GasLimit,
112-
//TODO: Difficulty: new(big.Int).SetUint64(10),
113-
//TODO: ExtraData: []byte{1, 2, 3, 4, 5, 6, 7, 8},
108+
Number: daBlock.BlockNumber,
109+
Time: daBlock.Timestamp,
110+
BaseFee: daBlock.BaseFee,
111+
GasLimit: daBlock.GasLimit,
112+
Difficulty: 10, // TODO: replace with real difficulty
113+
ExtraData: []byte{1, 2, 3, 4, 5, 6, 7, 8}, // TODO: replace with real extra data
114114
},
115115
txs)
116116
blocks = append(blocks, block)

0 commit comments

Comments
 (0)