forked from cerc-io/plugeth
cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)
This commit is contained in:
parent
95b0555c84
commit
052355f5e2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user