Go to file
Michael Vines d15173ad9d Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
.buildkite Add comment about encrypted API tokens for buildkite 2020-08-17 23:47:48 +00:00
.github
.travis
account-decoder Rename Binary64 to Base64. Establish Base58 encoding 2020-08-17 17:26:29 -07:00
accounts-bench
banking-bench
banks-client
banks-interface
banks-server
bench-exchange
bench-streamer
bench-tps
ci Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
clap-utils
cli Add (hidden) --use-deprecated-loader flag to `solana deploy` 2020-08-17 19:57:44 -07:00
cli-config
client Rename Binary64 to Base64. Establish Base58 encoding 2020-08-17 17:26:29 -07:00
core Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
crate-features
docs Comment that docs Algolia key is safe to publish 2020-08-18 05:25:51 +00:00
dos
download-utils
explorer chore:(deps): bump @types/node from 14.0.27 to 14.6.0 in /explorer (#11672) 2020-08-18 00:03:45 +00:00
faucet Faucet: Add per-request cap (#11665) 2020-08-17 17:33:14 -06:00
genesis Make BPF Loader static (#11516) 2020-08-14 12:32:45 -07:00
genesis-programs Make BPF Loader static (#11516) 2020-08-14 12:32:45 -07:00
gossip
install
keygen
ledger Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
ledger-tool Rename Binary64 to Base64. Establish Base58 encoding 2020-08-17 17:26:29 -07:00
local-cluster Make BPF Loader static (#11516) 2020-08-14 12:32:45 -07:00
log-analyzer
logger
measure
merkle-tree
metrics Reorganize dashboard (#11639) 2020-08-14 14:42:33 -07:00
multinode-demo
net
net-shaper
net-utils
notifier
perf
poh-bench
programs Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
ramp-tps
rayon-threadlimit
remote-wallet
runtime Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
scripts
sdk Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
stake-accounts
stake-monitor Rename Binary64 to Base64. Establish Base58 encoding 2020-08-17 17:26:29 -07:00
stake-o-matic
storage-bigtable Rpc: Add until parameter for getConfirmedSignaturesForAddress2 (#11644) 2020-08-15 10:42:17 -06:00
streamer
sys-tuner
system-test
tokens
transaction-status Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
upload-perf
validator
version
vote-signer
watchtower Rename Binary64 to Base64. Establish Base58 encoding 2020-08-17 17:26:29 -07:00
web3.js fix: adapt to binary64 -> base64 rename 2020-08-17 22:19:49 -07:00
.DS_Store
.clippy.toml
.codecov.yml
.gitignore
.mergify.yml
.travis.yml
CONTRIBUTING.md
Cargo.lock Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock 2020-08-17 17:26:29 -07:00
Cargo.toml
LICENSE
README.md
RELEASE.md
fetch-perf-libs.sh
fetch-spl.sh
run.sh

README.md

Solana

Solana crate Solana documentation Build status codecov

Building

1. Install rustc, cargo and rustfmt.

$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt

If your rustc version is lower than 1.39.0, please update it:

$ rustup update

On Linux systems you may need to install libssl-dev, pkg-config, zlib1g-dev, etc. On Ubuntu:

$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang

2. Download the source code.

$ git clone https://github.com/solana-labs/solana.git
$ cd solana

3. Build.

$ cargo build

4. Run a minimal local cluster.

$ ./run.sh

Testing

Run the test suite:

$ cargo test

Starting a local testnet

Start your own testnet locally, instructions are in the online docs.

Accessing the remote testnet

  • testnet - public stable testnet accessible via devnet.solana.com. Runs 24/7

Benchmarking

First install the nightly build of rustc. cargo bench requires use of the unstable features only available in the nightly build.

$ rustup install nightly

Run the benchmarks:

$ cargo +nightly bench

Release Process

The release process for this project is described here.

Code coverage

To generate code coverage statistics:

$ scripts/coverage.sh
$ open target/cov/lcov-local/index.html

Why coverage? While most see coverage as a code quality metric, we see it primarily as a developer productivity metric. When a developer makes a change to the codebase, presumably it's a solution to some problem. Our unit-test suite is how we encode the set of problems the codebase solves. Running the test suite should indicate that your change didn't infringe on anyone else's solutions. Adding a test protects your solution from future changes. Say you don't understand why a line of code exists, try deleting it and running the unit-tests. The nearest test failure should tell you what problem was solved by that code. If no test fails, go ahead and submit a Pull Request that asks, "what problem is solved by this code?" On the other hand, if a test does fail and you can think of a better way to solve the same problem, a Pull Request with your solution would most certainly be welcome! Likewise, if rewriting a test can better communicate what code it's protecting, please send us that patch!

Disclaimer

All claims, content, designs, algorithms, estimates, roadmaps, specifications, and performance measurements described in this project are done with the author's best effort. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore nothing in this project constitutes a solicitation for investment.