02f7b55731 | ||
---|---|---|
bench-utils | ||
benches | ||
lite-client | ||
src | ||
tests | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
metrics.csv |
README.md
Lite RPC
Submitting a transaction to be executed on the solana blockchain,
requires the client to identify the next few leaders based on the
leader schedule, look up their peering information in gossip and
connect to them via the quic protocol. In order to simplify the
process so it can be triggered from a web browser, most applications
run full validators that forward the transactions according to the
protocol on behalf of the web browser. Running full solana validators
is incredibly resource intensive (>256GB RAM)
, the goal of this
project would be to create a specialized micro-service that allows
to deploy this logic quickly and allows horizontal scalability with
commodity vms.
Confirmation strategies
- Subscribe to new blocks using blockSubscribe
- Subscribing to signatures with pool of rpc servers. (Under development)
- Listining to gossip protocol. (Future roadmap)
Executing
make sure solana-validator
is running in the background with --rpc-pubsub-enable-block-subscription
run using
$ cargo run --release
to know about command line options
$ cargo run --release -- --help
Test and Bench
Make sure both solana-validator
and lite-rpc
is running
to test run
$ cargo test
to bench run
run light-rpc
bench
$ cargo bench
Find a new file named metrics.csv
in the project root.
License & Copyright
Copyright (c) 2022 Blockworks Foundation
Licensed under the MIT LICENSE