eth/catalyst: use setcanonical instead of sethead in simulated fork

Martin Holst Swende 2 months ago
parent deb5c087c4
commit 3c2c0d2ef7
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0
  1. 3
      eth/catalyst/simulated_beacon.go

@ -306,7 +306,8 @@ func (c *SimulatedBeacon) Fork(parentHash common.Hash) error {
if parent == nil { if parent == nil {
return errors.New("parent not found") 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. // AdjustTime creates a new block with an adjusted timestamp.

Loading…
Cancel
Save