From 7bd993688749557cd2147a699b1709da96ee5072 Mon Sep 17 00:00:00 2001 From: Bjarte Stien Karlsen Date: Tue, 27 Feb 2024 21:29:58 +0100 Subject: [PATCH] update to new flowkit --- go.mod | 2 +- go.sum | 4 ++-- transaction.go | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2b90e12..4975411 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/onflow/flow-emulator v1.0.0-M7 github.com/onflow/flow-go v0.34.0-crescendo-preview.1.0.20240222213538-3677206d445c github.com/onflow/flow-go-sdk v1.0.0-M5 - github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.5 + github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.6 github.com/pkg/errors v0.9.1 github.com/rs/zerolog v1.29.1 github.com/samber/lo v1.38.1 diff --git a/go.sum b/go.sum index f2cbc63..c146070 100644 --- a/go.sum +++ b/go.sum @@ -1885,8 +1885,8 @@ github.com/onflow/flow-nft/lib/go/contracts v1.1.1-0.20240205233530-86ee8c352fa6 github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231121210617-52ee94b830c2/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= github.com/onflow/flow/protobuf/go/flow v0.3.7 h1:+6sBdlE/u4ZMTVB9U1lA6Xn2Bd48lOOX96Bv9dNubsk= github.com/onflow/flow/protobuf/go/flow v0.3.7/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= -github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.5 h1:A7M6BgzS1aed4BIb2UpZcTIZOdfk+wo2/2Qzl+X6/Yc= -github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.5/go.mod h1:dE+sqHi14wUBiJyeujA2LYVsJDTcXLzSRwiDdJJHji4= +github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.6 h1:YCLYpSJ0ckCe88+F7vvYQawIeMXJO4yZ1pXMxZe7NNo= +github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.6/go.mod h1:dE+sqHi14wUBiJyeujA2LYVsJDTcXLzSRwiDdJJHji4= github.com/onflow/sdks v0.5.1-0.20230912225508-b35402f12bba h1:rIehuhO6bj4FkwE4VzwEjX7MoAlOhUJENBJLqDqVxAo= github.com/onflow/sdks v0.5.1-0.20230912225508-b35402f12bba/go.mod h1:F0dj0EyHC55kknLkeD10js4mo14yTdMotnWMslPirrU= github.com/onflow/wal v0.0.0-20240208022732-d756cd497d3b h1:6O/BEmA99PDT5QVjoJgrYlGsWnpxGJTAMmsC+V9gyds= diff --git a/transaction.go b/transaction.go index 251c926..130dd2d 100644 --- a/transaction.go +++ b/transaction.go @@ -218,11 +218,13 @@ func (o *OverflowState) GetOverflowTransactionsForBlockId(ctx context.Context, i } func (o *OverflowState) GetBlockResult(ctx context.Context, height uint64, logg *zap.Logger) (*BlockResult, error) { + logg.Debug("first") start := time.Now() block, err := o.GetBlockAtHeight(ctx, height) if err != nil { return nil, err } + logg.Debug("second") tx, systemChunkEvents, err := o.GetOverflowTransactionsForBlockId(ctx, block.ID, logg) if err != nil { return nil, err @@ -237,6 +239,7 @@ func (o *OverflowState) StreamTransactions(ctx context.Context, poll time.Durati if err != nil { return err } + logger.Info("latest block is", zap.Uint64("height", latestKnownBlock.Height)) sleep := poll for {