2024-07-02 14:05:19 +00:00
|
|
|
package premerge2
|
2023-09-22 09:10:39 +00:00
|
|
|
|
|
|
|
import (
|
2024-06-22 10:28:19 +00:00
|
|
|
"github.com/cerc-io/eth-testing/chains"
|
2023-09-24 06:59:14 +00:00
|
|
|
"github.com/cerc-io/eth-testing/utils"
|
2023-09-22 09:10:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2024-07-02 14:05:19 +00:00
|
|
|
ChainData, err = chains.GetFixture("premerge2")
|
2023-09-24 06:59:14 +00:00
|
|
|
|
|
|
|
// keybytes-encoded leaf keys of all state nodes
|
|
|
|
Block1_StateNodeLeafKeys [][]byte
|
2023-09-22 09:10:39 +00:00
|
|
|
)
|
2023-09-24 06:42:53 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2023-09-24 06:59:14 +00:00
|
|
|
|
|
|
|
for _, path := range Block1_StateNodePaths {
|
|
|
|
if len(path) > 0 && path[len(path)-1] == 16 {
|
|
|
|
hash := utils.HexToKeyBytes(path)
|
|
|
|
Block1_StateNodeLeafKeys = append(Block1_StateNodeLeafKeys, hash)
|
|
|
|
}
|
|
|
|
}
|
2023-09-24 06:42:53 +00:00
|
|
|
}
|