Skip to content

Commit

Permalink
miner: style format
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Nov 28, 2024
1 parent 9185f29 commit afcc8d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/chain_makers.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,9 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
header.WithdrawalsHash = &types.EmptyWithdrawalsHash
if cm.config.IsBohr(header.Number, header.Time) {
header.ParentBeaconRoot = new(common.Hash)
if cm.config.IsPrague(header.Number, header.Time) {
header.RequestsHash = &types.EmptyRequestsHash
}
}
if cm.config.IsPrague(header.Number, header.Time) {
header.RequestsHash = &types.EmptyRequestsHash
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1033,9 +1033,9 @@ func (w *worker) prepareWork(genParams *generateParams, witness bool) (*environm
header.WithdrawalsHash = &types.EmptyWithdrawalsHash
if w.chainConfig.IsBohr(header.Number, header.Time) {
header.ParentBeaconRoot = new(common.Hash)
if w.chainConfig.IsPrague(header.Number, header.Time) {
header.RequestsHash = &types.EmptyRequestsHash
}
}
if w.chainConfig.IsPrague(header.Number, header.Time) {
header.RequestsHash = &types.EmptyRequestsHash
}
}
}
Expand Down

0 comments on commit afcc8d6

Please sign in to comment.