onflow / flow-go-sdk

Tools for building Go applications on Flow :ocean:
https://onflow.org
Apache License 2.0
212 stars 86 forks source link

BlockPayload type differs from actual block payload in protobuf schema #767

Closed illia-malachyn closed 2 weeks ago

illia-malachyn commented 2 months ago

This is a part of https://github.com/onflow/flow-go-sdk/issues/736

Block is used in the following endpoints: GetLatestBlock, GetBlockByID, GetBlockByHeight https://github.com/onflow/flow-go-sdk/blob/master/access/grpc/grpc.go#L239

BlockPayload type on the SDK side https://github.com/onflow/flow-go-sdk/blob/master/block.go#L64

Actual block payload in the Protobuf schema https://github.com/onflow/flow/blob/master/protobuf/flow/entities/block.proto#L21