Skip to content

Commit

Permalink
set withdrawals from block
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandromazza98 committed Oct 2, 2024
1 parent 1aa6187 commit d242aed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions packages/replayor/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ func (r *Benchmark) addBlock(ctx context.Context, currentBlock strategies.BlockC
GasLimit: currentBlock.GasLimit,
PrevRandao: currentBlock.MixDigest,
ParentBeaconBlockRoot: currentBlock.BeaconRoot,
}

if r.rollupCfg.IsCanyon(uint64(currentBlock.Time)) {
attrs.Withdrawals = &types.Withdrawals{}
Withdrawals: &currentBlock.Withdrawals,
}

startTime := time.Now()
Expand Down
1 change: 1 addition & 0 deletions packages/strategies/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func blockToCreationParams(input *types.Block) BlockCreationParams {
MixDigest: eth.Bytes32(input.MixDigest()),
BeaconRoot: input.BeaconRoot(),
FeeRecipient: input.Coinbase(),
Withdrawals: input.Withdrawals(),
validateInfo: input.Hash(),
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/strategies/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type BlockCreationParams struct {
MixDigest eth.Bytes32
BeaconRoot *common.Hash
FeeRecipient common.Address
Withdrawals types.Withdrawals
validateInfo interface{}
}

Expand Down

0 comments on commit d242aed

Please sign in to comment.