Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

rpc: Add options for limiting getConfirmedBlock response data #15817

Closed
jstarry opened this issue Mar 12, 2021 · 1 comment · Fixed by #15970
Closed

rpc: Add options for limiting getConfirmedBlock response data #15817

jstarry opened this issue Mar 12, 2021 · 1 comment · Fixed by #15970

Comments

@jstarry
Copy link
Contributor

jstarry commented Mar 12, 2021

Problem

The getConfirmedBlock RPC response can be quite massive when considering transaction details and metadata as well as a ton of reward information for blocks on the epoch boundary. Not all consumers will need this information but currently everyone has to pay the cost of bandwidth and response time.

Proposed Solution

  1. Add an option to not return reward info
  2. Add an option to return either full tx details, only signatures, or nothing at all.
@mvines
Copy link
Contributor

mvines commented Mar 12, 2021

The "nothing at all" case for transactions in a block would speed up the rewards output in solana vote-account and solana stake-account -- these two commands are getting slower and slower for each new epoch post-inflation. This is probably worth spinning off into another issue, once this issue is fixed, assuming it doesn't happen at the same time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants