mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Merge 86912e8aed into d3edc58ef7
This commit is contained in:
commit
4cdfcfbd15
1 changed files with 7 additions and 0 deletions
|
|
@ -528,6 +528,13 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
|
|||
header.BlobGasUsed = new(uint64)
|
||||
header.ParentBeaconRoot = new(common.Hash)
|
||||
}
|
||||
if cm.config.IsAmsterdam(header.Number, header.Time) {
|
||||
var slot uint64
|
||||
if parentHeader.SlotNumber != nil {
|
||||
slot = *parentHeader.SlotNumber + 1
|
||||
}
|
||||
header.SlotNumber = &slot
|
||||
}
|
||||
return header
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue