blockworks-foundation / lite-rpc

This is a solana lite rpc which optimizes sending transactions and confirming transactions strategies.
GNU Affero General Public License v3.0
192 stars 54 forks source link

Optimizing Validator Selection for Solana Lite RPC Configuration #392

Open datacoder-io opened 5 months ago

datacoder-io commented 5 months ago

I am using a private Solana RPC setup on a personal server. In my Solana Validator configuration, I've specified five validators. (known-validator)

My question is, does this Lite RPC choose only one validator from the five I've specified? If so, do you think it would be better to remove this limitation to give Lite RPC more flexibility in choosing the best validator when sending transactions? Wouldn't this allow it to potentially pick a better validator?

godmodegalactus commented 4 weeks ago

I think this can be done outside lite-rpc using a proxy, but I was also thinking on same lines where lite-rpc can implement this logic. Incase of geyser-grpc connection it will connect to all 5 custom RPC and will select get data from the fastest geyser connection.