mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-27 02:09:27 +00:00
core: add slot number
This commit is contained in:
parent
efe58eac00
commit
86912e8aed
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