Skip to content

Commit

Permalink
update to new flowkit
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Feb 27, 2024
1 parent 50606ff commit 7bd9936
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
3 changes: 3 additions & 0 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 7bd9936

Please sign in to comment.