Roy Crihfield
29c99ddf6a
All checks were successful
Test / Run unit tests (push) Successful in 3m53s
For easier processing with chain-chunker. Reviewed-on: #8
28 lines
567 B
Go
28 lines
567 B
Go
// premerge2 is from an Ethash-based pre-Merge chain.
|
|
package premerge2
|
|
|
|
import (
|
|
"github.com/cerc-io/eth-testing/chains"
|
|
"github.com/cerc-io/eth-testing/utils"
|
|
)
|
|
|
|
var (
|
|
ChainData, err = chains.GetFixture("premerge2")
|
|
|
|
// keybytes-encoded leaf keys of all state nodes
|
|
Block1_StateNodeLeafKeys [][]byte
|
|
)
|
|
|
|
func init() {
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
for _, path := range Block1_StateNodePaths {
|
|
if len(path) > 0 && path[len(path)-1] == 16 {
|
|
hash := utils.HexToKeyBytes(path)
|
|
Block1_StateNodeLeafKeys = append(Block1_StateNodeLeafKeys, hash)
|
|
}
|
|
}
|
|
}
|