near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.3k stars 601 forks source link

RPC node tracking a subset of shards #11157

Open telezhnaya opened 2 months ago

telezhnaya commented 2 months ago

See the discussion here https://near.zulipchat.com/#narrow/stream/295302-general/topic/RPC.20tracking.20subset.20of.20shards https://docs.google.com/document/d/1cYs6erFk2bUiqNxyPR9nWYQETHwzYEDJrRBksHEPW9c/edit?usp=sharing

telezhnaya commented 2 months ago

I reviewed existing RPC methods and grouped them into categories:

We can track only 1 shard to provide the answer:

Some of the requests should work fine even with the light client, but the majority of the requests requires a specific shard, and the user doesn't know and doesn't have a way to find which exact shard do they need.

We need all the shards (in the worst case) to provide the answer:

We are already redirecting these queries: