Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect rewards parameter in getBlock transaction-level rewards #27655

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

CriesofCarrots
Copy link
Contributor

Problem

The getBlock parameter rewards currently only affects whether block-level rewards are returned. Transaction-level rewards are returned regardless. While this isn't super critical with very few Rent payment, current behavior is a bit counterintuitive and may force clients to consume more data than they want to.

Summary of Changes

Pass show_rewards into UiTransactionStatusMeta constructors and only populate rewards when true.
Also fixup docs to be correct

@CriesofCarrots CriesofCarrots merged commit 5428495 into solana-labs:master Sep 8, 2022
mergify bot pushed a commit that referenced this pull request Sep 8, 2022
* Respect options.show_rewards in UiTransactionStatusMeta

* Fixup docs

(cherry picked from commit 5428495)
mergify bot pushed a commit that referenced this pull request Sep 8, 2022
* Respect options.show_rewards in UiTransactionStatusMeta

* Fixup docs

(cherry picked from commit 5428495)
mergify bot added a commit that referenced this pull request Sep 8, 2022
…port #27655) (#27669)

Respect rewards parameter in getBlock transaction-level rewards (#27655)

* Respect options.show_rewards in UiTransactionStatusMeta

* Fixup docs

(cherry picked from commit 5428495)

Co-authored-by: Tyera Eulberg <[email protected]>
mergify bot added a commit that referenced this pull request Sep 8, 2022
…port #27655) (#27670)

Respect rewards parameter in getBlock transaction-level rewards (#27655)

* Respect options.show_rewards in UiTransactionStatusMeta

* Fixup docs

(cherry picked from commit 5428495)

Co-authored-by: Tyera Eulberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants