Skip to content

Commit 37cb126

Browse files
Update derive events hash test (#62)
* Requests to access node use CCF encoding from now on * decode payload via ccf * update root block and spork id * Upgrade go version, flow-go and core-contracts deps * Update mainnet spork info for state indexer's convert test * Remove obsolete todo
1 parent d5760ae commit 37cb126

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

state/convert_test.go

+5-10
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ import (
1313
"github.com/stretchr/testify/require"
1414
)
1515

16-
//var accessAddr = "access-001.canary1.nodes.onflow.org:9000"
17-
//var startBlockHeight uint64 = 59789556
18-
//var endBlockHeight uint64 = 59789558
19-
20-
var accessAddr = "access-001.mainnet23.nodes.onflow.org:9000"
21-
var startBlockHeight uint64 = 55114468
22-
var endBlockHeight uint64 = 55114470
16+
var accessAddr = "access-001.mainnet24.nodes.onflow.org:9000"
17+
var startBlockHeight uint64 = 65264620
18+
var endBlockHeight uint64 = 65264630
2319

2420
func TestVerifyBlockHash(t *testing.T) {
2521
// load mainnet config and get blocks exactly as state.go
@@ -149,12 +145,11 @@ func TestDeriveEventsHash(t *testing.T) {
149145
func createSpork(ctx context.Context) (*config.Spork, error) {
150146
addr := accessAddr
151147
pool := access.New(ctx, []access.NodeConfig{{Address: addr}}, nil)
152-
//chain := &config.Chain{Network: "canary"}
153148
chain := &config.Chain{Network: "mainnet"}
154149
return &config.Spork{
155-
Version: 5,
150+
Version: 6,
156151
Chain: chain,
157152
AccessNodes: pool,
158-
RootBlock: 55114467,
153+
RootBlock: 65264619,
159154
}, nil
160155
}

0 commit comments

Comments
 (0)