Repository navigation
feat(rpc): expose direct account reads on minimal validator RPC - #15955
Conversation
|
One option here is to only enable this for local rpc. Does anyone run a public rpc without full-api though? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #15955 +/- ##
=========================================
- Coverage 82.2% 82.2% -0.1%
=========================================
Files 952 952
Lines 372750 372777 +27
=========================================
- Hits 306684 306647 -37
- Misses 66066 66130 +64 🚀 New features to boost your workflow:
|
84f19ae to
2a512db
Compare
brooksprumo
left a comment
There was a problem hiding this comment.
expose getAccountInfo and getMultipleAccounts without full_api
Does this mean all validators now expose this RPC method, or is there some other cli arg for the minimal stuff?
Otherwise, the code lgtm. The get_account_info() and get_multiple_accounts() impls do per-account lookups and not account scans, so aren't the worst things in the world for accounts-db. All this with the usual caveats that we're trying to remove RPC not add more to it.
I'd also like to get approval from a product owner like person. @bw-solana tagging you in for this. Feel free to request reviews from folks that fit the bill.
|
There's no separate flag for minimal rpc, it's just specifying an rpc-port and NOT having --full-rpc-api |
|
for paper trail, can you update description to spell out the use case where we want access to accounts without the baggage of the full RPC API? |
|
Here's my understanding of the summary.
I'm not sure who all is using that middle config and would thus be impacted. I'll ask around |
I think the more important is the middle one without |
Added a Motivation section at the top of PR description. |
2a512db to
c7895e9
Compare
|
@bw-solana is this something we can merge for 4.5, would like to be using it for bundle stuff. |
|
yes, I'm okay with it |
one of you mind approving then lol? |
Motivation
Problem
Summary of Changes