Revert "cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)"

This reverts commit f22ae6a9e3.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent a713a64ff6
commit da34ca641c

View file

@ -158,7 +158,7 @@ func (i *bbInput) ToBlock() *types.Block {
if i.Header.Nonce != nil { if i.Header.Nonce != nil {
header.Nonce = *i.Header.Nonce header.Nonce = *i.Header.Nonce
} }
if i.Header.Difficulty != nil { if header.Difficulty != nil {
header.Difficulty = i.Header.Difficulty header.Difficulty = i.Header.Difficulty
} }
return types.NewBlockWithHeader(header).WithBody(i.Txs, i.Ommers).WithWithdrawals(i.Withdrawals) return types.NewBlockWithHeader(header).WithBody(i.Txs, i.Ommers).WithWithdrawals(i.Withdrawals)