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

This commit is contained in:
tactical_retreat 2023-10-04 05:38:25 -04:00 committed by GitHub
parent 95b0555c84
commit 052355f5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 header.Difficulty != nil { if i.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)