onflow / onflow/flow-cli

When fetching Transasctions and Results for a block that is very large it fails

Open
#1,107 0 comments 0 reactions 1 assignee View on GitHub

@devbugging is already working on this.

Since Jun 25, 2023.

Feedback
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Instructions

Using flowkit try to GetTransactionsByBlockID() block 55179362

You will get the error message getting transactions: getting transaction results: client: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (26319669 vs. 20971520)

Problem

Flowkit fetches all Transactions in a block (small size) and then TransactionResults (large size) in one got.

Steps to Reproduce

Using flowkit try to GetTransactionsByBlockID() block 55179362

Acceptance Criteria

Guard against the error and manually run GetTransactionResults in a loop for every Transaction in the block.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.