Skip to content

Commit

Permalink
Merge pull request #286 from seita-uc/fix-get-latest-block
Browse files Browse the repository at this point in the history
Use latest finalized block for reference
  • Loading branch information
latenssi authored May 27, 2022
2 parents 1c66f2d + 715d58d commit 75caebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow_helpers/flow_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const hexPrefix = "0x"

// LatestBlockId retuns the flow.Identifier for the latest block in the chain.
func LatestBlockId(ctx context.Context, flowClient FlowClient) (*flow.Identifier, error) {
block, err := flowClient.GetLatestBlockHeader(ctx, true)
block, err := flowClient.GetLatestBlockHeader(ctx, false)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 75caebc

Please sign in to comment.