Skip to content

Commit

Permalink
Update derive events hash test (#62)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
illia-malachyn authored May 28, 2024
1 parent d5760ae commit 37cb126
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions state/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ import (
"github.com/stretchr/testify/require"
)

//var accessAddr = "access-001.canary1.nodes.onflow.org:9000"
//var startBlockHeight uint64 = 59789556
//var endBlockHeight uint64 = 59789558

var accessAddr = "access-001.mainnet23.nodes.onflow.org:9000"
var startBlockHeight uint64 = 55114468
var endBlockHeight uint64 = 55114470
var accessAddr = "access-001.mainnet24.nodes.onflow.org:9000"
var startBlockHeight uint64 = 65264620
var endBlockHeight uint64 = 65264630

func TestVerifyBlockHash(t *testing.T) {
// load mainnet config and get blocks exactly as state.go
Expand Down Expand Up @@ -149,12 +145,11 @@ func TestDeriveEventsHash(t *testing.T) {
func createSpork(ctx context.Context) (*config.Spork, error) {
addr := accessAddr
pool := access.New(ctx, []access.NodeConfig{{Address: addr}}, nil)
//chain := &config.Chain{Network: "canary"}
chain := &config.Chain{Network: "mainnet"}
return &config.Spork{
Version: 5,
Version: 6,
Chain: chain,
AccessNodes: pool,
RootBlock: 55114467,
RootBlock: 65264619,
}, nil
}

0 comments on commit 37cb126

Please sign in to comment.