mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-05 14:38:42 +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.BlobGasUsed = new(uint64)
|
||||||
header.ParentBeaconRoot = new(common.Hash)
|
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
|
return header
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue