From 26dbf42d04a2f6b7a3cc88675f3446f4fecacbaf Mon Sep 17 00:00:00 2001 From: jonastheis <4181434+jonastheis@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:23:17 +0800 Subject: [PATCH] feat: fix issue with not specifying difficulty --- rollup/da_syncer/da/commitV0.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rollup/da_syncer/da/commitV0.go b/rollup/da_syncer/da/commitV0.go index 432c6d8462de..481bb60ed124 100644 --- a/rollup/da_syncer/da/commitV0.go +++ b/rollup/da_syncer/da/commitV0.go @@ -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)