Skip to content

Commit

Permalink
feat: fix issue with not specifying difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Jul 29, 2024
1 parent 43d9c8c commit 38f46ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rollup/da_syncer/da/commitV0.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ func (c *CommitBatchDAV0) Blocks() ([]*PartialBlock, error) {

block := NewPartialBlock(
&PartialHeader{
Number: daBlock.BlockNumber,
Time: daBlock.Timestamp,
BaseFee: daBlock.BaseFee,
GasLimit: daBlock.GasLimit,
//TODO: Difficulty: new(big.Int).SetUint64(10),
//TODO: ExtraData: []byte{1, 2, 3, 4, 5, 6, 7, 8},
Number: daBlock.BlockNumber,
Time: daBlock.Timestamp,
BaseFee: daBlock.BaseFee,
GasLimit: daBlock.GasLimit,
Difficulty: 10, // TODO: replace with real difficulty
ExtraData: []byte{1, 2, 3, 4, 5, 6, 7, 8}, // TODO: replace with real extra data
},
txs)
blocks = append(blocks, block)
Expand Down

0 comments on commit 38f46ed

Please sign in to comment.