Skip to content

fix: return [] not null for empty accounts-mode meta.rewards#52

Merged
notwedtm merged 2 commits into
solana-rpc:mainfrom
Mctursh:fix/accounts-rewards-empty-array
Jul 22, 2026
Merged

fix: return [] not null for empty accounts-mode meta.rewards#52
notwedtm merged 2 commits into
solana-rpc:mainfrom
Mctursh:fix/accounts-rewards-empty-array

Conversation

@Mctursh

@Mctursh Mctursh commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Accounts-mode sibling of #43. getBlock with transactionDetails=accounts returns meta.rewards: null for transactions with no rewards, where agave returns []. It's the default path too (rewards defaults to true). #43 fixed the shared full-meta builder; this applies the same None -> Some(Vec::new()) to build_transaction_status_meta_for_accounts. Test added.

@notwedtm
notwedtm added this pull request to the merge queue Jul 22, 2026
Merged via the queue into solana-rpc:main with commit 32bf78a Jul 22, 2026
6 checks passed
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