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

RPC: include resolved keys from table lookups in parsed message response #27552

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Sep 1, 2022

Problem

The jsonParsed encoded response for versioned transactions and blocks doesn't include account keys resolved from lookup tables in the parsed message account keys list. I consider this a bug because the parsed message response is meant to be a user-friendly response which indicates all the account keys and whether they were writable or signers.

Summary of Changes

  • Include resolved keys from table lookups in parsed message response
  • Add source field to ParsedAccount to indicate whether the account key came from a transaction or lookup table

Fixes #

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jstarry jstarry merged commit c620b7b into solana-labs:master Sep 6, 2022
@jstarry jstarry deleted the rpc/parsed-message branch September 6, 2022 15:40
mergify bot pushed a commit that referenced this pull request Sep 6, 2022
…nse (#27552)

* RPC: include resolved keys from table lookups in parsed message response

* Add source to ParsedAccount

* Ensure that rpc client can parse account meta from old api versions

(cherry picked from commit c620b7b)
mergify bot pushed a commit that referenced this pull request Sep 6, 2022
…nse (#27552)

* RPC: include resolved keys from table lookups in parsed message response

* Add source to ParsedAccount

* Ensure that rpc client can parse account meta from old api versions

(cherry picked from commit c620b7b)
mergify bot added a commit that referenced this pull request Sep 7, 2022
…nse (backport #27552) (#27609)

RPC: include resolved keys from table lookups in parsed message response (#27552)

* RPC: include resolved keys from table lookups in parsed message response

* Add source to ParsedAccount

* Ensure that rpc client can parse account meta from old api versions

(cherry picked from commit c620b7b)

Co-authored-by: Justin Starry <justin@solana.com>
mergify bot added a commit that referenced this pull request Sep 7, 2022
…nse (backport #27552) (#27610)

RPC: include resolved keys from table lookups in parsed message response (#27552)

* RPC: include resolved keys from table lookups in parsed message response

* Add source to ParsedAccount

* Ensure that rpc client can parse account meta from old api versions

(cherry picked from commit c620b7b)

Co-authored-by: Justin Starry <justin@solana.com>
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