Upgrade for Cancun fork (Geth 1.14) #10

Merged
roysc merged 13 commits from update-geth1.13 into v5 2024-08-05 13:17:00 +00:00
Showing only changes of commit e4f5b1d109 - Show all commits

View File

@ -4,7 +4,6 @@ import (
"fmt" "fmt"
"math/rand" "math/rand"
"path/filepath" "path/filepath"
"sort"
"testing" "testing"
"time" "time"
@ -130,8 +129,7 @@ func verify_chainAblock1(t *testing.T, data mocks.IndexerData) {
stateKey := common.BytesToHash(stateNode.AccountWrapper.LeafKey).String() stateKey := common.BytesToHash(stateNode.AccountWrapper.LeafKey).String()
indexedStateKeys = append(indexedStateKeys, stateKey) indexedStateKeys = append(indexedStateKeys, stateKey)
} }
sort.Slice(indexedStateKeys, func(i, j int) bool { return indexedStateKeys[i] < indexedStateKeys[j] }) require.ElementsMatch(t, fixture.ChainA_Block1_StateNodeLeafKeys, indexedStateKeys)
require.Equal(t, fixture.ChainA_Block1_StateNodeLeafKeys, indexedStateKeys)
ipldCids := make(map[string]struct{}) ipldCids := make(map[string]struct{})
for _, ipld := range data.IPLDs { for _, ipld := range data.IPLDs {