Skip to content

Commit

Permalink
eth/catalyst: use setcanonical instead of sethead in simulated fork
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 19, 2024
1 parent deb5c08 commit 3c2c0d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/catalyst/simulated_beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ func (c *SimulatedBeacon) Fork(parentHash common.Hash) error {
if parent == nil {
return errors.New("parent not found")
}
return c.eth.BlockChain().SetHead(parent.NumberU64())
_, err := c.eth.BlockChain().SetCanonical(parent)
return err
}

// AdjustTime creates a new block with an adjusted timestamp.
Expand Down

0 comments on commit 3c2c0d2

Please sign in to comment.