all: implement forkid changes for shanghai

This commit is contained in:
Marius van der Wijden authored and Péter Szilágyi committed 2023-01-03 12:57:06 +02:00
1 parent efc9409ca9
commit a4e19c5ca3
11 files changed
+277 -48

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ func (c *Chain) RootAt(height int) common.Hash {
// ForkID gets the fork id of the chain.
func (c *Chain) ForkID() forkid.ID {
return forkid.NewID(c.chainConfig, c.blocks[0].Hash(), uint64(c.Len()))
return forkid.NewID(c.chainConfig, c.blocks[0].Hash(), uint64(c.Len()), c.blocks[0].Time())
}
// Shorten returns a copy chain of a desired height from the imported