mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update eth/catalyst/simulated_beacon.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
parent
27bd304139
commit
a41947a137
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal) error {
|
||||||
if payload.Number%devEpochLength == 0 {
|
if payload.Number%devEpochLength == 0 {
|
||||||
finalizedHash = payload.BlockHash
|
finalizedHash = payload.BlockHash
|
||||||
} else {
|
} else {
|
||||||
finalizedHash = c.eth.BlockChain().GetBlockByNumber((payload.Number - 1) / 32 * 32).Hash()
|
finalizedHash = c.eth.BlockChain().GetBlockByNumber((payload.Number - 1) / devEpochLength * devEpochLength).Hash()
|
||||||
}
|
}
|
||||||
|
|
||||||
// mark the payload as canon
|
// mark the payload as canon
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue