You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Godmode Galactus cea7d9d0d7
Minor changes to the batching timeout
9 hours ago
.github/workflows install yarn deps 1 week ago
bench random string fix 1 week ago
benches add MAX_RECENT_BLOCKHASSHES and some logs (#49) 2 months ago
migrations successfully write to postgres 2 months ago
src Minor changes to the batching timeout 9 hours ago
tests random string 2 days ago
.dockerignore Add docker build, fly config 2 months ago
.gitignore ignore test-ledger generated by solana-test-validator 1 week ago
Cargo.lock rand cargo.lock 1 week ago
Cargo.toml remove un used flags 3 weeks ago
Dockerfile enable postgres 2 weeks ago
LICENSE switch to AGPL 2 days ago
README.md postgres env 2 months ago
fly.toml fixed comments left by pan in #40 2 months ago
jest.config.js typescript tests 3 months ago
package-lock.json add MAX_RECENT_BLOCKHASSHES and some logs (#49) 2 months ago
package.json random string 2 days ago
tsconfig.json add MAX_RECENT_BLOCKHASSHES and some logs (#49) 2 months ago
yarn.lock random string 2 days ago

README.md

Lite RPC For Solana Blockchain

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

  1. Subscribe to new blocks using blockSubscribe
  2. Subscribing to signatures with pool of rpc servers. (Under development)
  3. Listening 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

test

$ cargo test

bench

$ cd bench and cargo run --release

Find a new file named metrics.csv in the project root.

Metrics and Postgres

LiteRpc implements a postgres service that can write to a postgres database tables as defined in ./migrations

env variables

env purpose
CA_PEM_B64 Base64 encoded ca.pem
CLIENT_PKS_B64 Base64 encoded client.pks
CLIENT_PKS_PASS Password to client.pks
PG_CONFIG Postgres Connection Config

Copyright (c) 2022 Blockworks Foundation

Licensed under the MIT LICENSE