8000 Rpc: getProgramAccounts, restrict base58 account data size by CriesofCarrots · Pull Request #18852 · solana-labs/solana · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Rpc: getProgramAccounts, restrict base58 account data size #18852

Merged

Conversation

CriesofCarrots
Copy link
Contributor

Problem

The rpc getProgramAccounts method does not consider account data size when using base58, even though the docs say it does.

Summary of Changes

Refactor account-encoding method to use in program-accounts loop (also needed for #18624 ); get base58 account-size error for free.

Fixes #18839

@codecov
Copy link
codecov bot commented Jul 23, 2021

Codecov Report

Merging #18852 (de43e8d) into master (5cabb5b) will decrease coverage by 0.0%.
The diff coverage is 74.0%.

@@            Coverage Diff            @@
##           master   #18852     +/-   ##
=========================================
- Coverage    82.8%    82.8%   -0.1%     
=========================================
  Files         443      443             
  Lines      126082   126089      +7     
=========================================
- Hits       104507   104493     -14     
- Misses      21575    21596     +21     

@CriesofCarrots CriesofCarrots merged commit 3eecb6f into solana-labs:master Jul 23, 2021
mergify bot pushed a commit that referenced this pull request Jul 23, 2021
* Refactor account encoding to povide helper w/out querying Bank

* Use new method in get_program_accounts to properly return length err

(cherry picked from commit 3eecb6f)
@CriesofCarrots CriesofCarrots changed the title Rpc: getProgramAccounts, restruct base58 account data size Rpc: getProgramAccounts, restrict base58 account data size Jul 23, 2021
mergify bot added a commit that referenced this pull request Jul 23, 2021
…18855)

* Refactor account encoding to povide helper w/out querying Bank

* Use new method in get_program_accounts to properly return length err

(cherry picked from commit 3eecb6f)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
@CriesofCarrots CriesofCarrots deleted the program-acct-encoding-size branch July 28, 2021 22:29
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
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 this pull request may close these issues.

RPC request getProgramAccounts accepts base58 encoding when account data > 129 bytes
1 participant
0