Go to file
mergify[bot] 5a61827702
Fix overflow in entry tick verification (bp #13572) (#13580)
* Fix overflow in entry hash count verification

(cherry picked from commit d611337394)

* clippy

(cherry picked from commit 01a4889b53)

Co-authored-by: Justin Starry <justin@solana.com>
2020-11-13 16:33:03 +00:00
.buildkite Fix BigTable reward type encoding (bp #13142) (#13146) 2020-10-26 08:18:05 +00:00
.github Update dependabot.yml 2020-07-14 11:49:25 -07:00
.travis Update channel_restriction.sh 2020-10-04 10:28:12 -06:00
account-decoder Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
accounts-bench Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
banking-bench Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
banks-client Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
banks-interface Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
banks-server Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
bench-exchange Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
bench-streamer Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
bench-tps Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
ci CI: Check monorepo for consistent crate versions (bp #13431) (#13432) 2020-11-06 02:27:51 +00:00
clap-utils Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
cli Fix slow/stuck unstaking due to toggling in epoch (bp #13501) (#13534) 2020-11-12 01:20:52 +00:00
cli-config Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
cli-output Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
client Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
core Fix slow/stuck unstaking due to toggling in epoch (bp #13501) (#13534) 2020-11-12 01:20:52 +00:00
crate-features Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
docs docs: Clarify the commitment levels based on questions (#13387) (#13425) 2020-11-05 19:38:59 +00:00
dos Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
download-utils Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
explorer Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
faucet Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
genesis Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
genesis-programs Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
gossip --gossip-host may now be specified with --entrypoint (#13566) 2020-11-13 07:32:16 +00:00
install Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
keygen Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
ledger Fix overflow in entry tick verification (bp #13572) (#13580) 2020-11-13 16:33:03 +00:00
ledger-tool Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
local-cluster Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
log-analyzer Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
logger Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
measure Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
merkle-tree Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
metrics Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
multinode-demo Rename to ClusterType and restore devnet compat. (manual bp) (#12069) 2020-09-08 23:54:54 +09:00
net Add SSH key for buildkite-agent on achille (#13182) 2020-10-27 04:25:53 +00:00
net-shaper Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
net-utils ip-echo-server: Don't use framed decoder, it can't be read-limited (#13570) 2020-11-13 09:16:06 +00:00
notifier Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
perf Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
poh-bench Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
programs fix bpf lddw check (#13554) (#13557) 2020-11-12 22:25:33 +00:00
ramp-tps Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
rayon-threadlimit Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
remote-wallet Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
runtime Small cleaning update_epoch_stakes (#13576) (#13577) 2020-11-13 12:28:51 +00:00
scripts Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
sdk Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
stake-accounts Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
stake-monitor Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
stake-o-matic Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
storage-bigtable Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
streamer Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
sys-tuner Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
system-test Modernize python scripts (#12595) 2020-09-30 18:24:49 +00:00
tokens Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
transaction-status Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
upload-perf Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
validator --gossip-host may now be specified with --entrypoint (#13566) 2020-11-13 07:32:16 +00:00
version Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
vote-signer Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
watchtower Increment version to v1.3.21 (#13528) 2020-11-11 19:30:46 +00:00
web3.js Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (bp #12768) (#12789) 2020-10-10 06:25:10 +00:00
.DS_Store fixes logo (#11350) 2020-08-04 10:51:25 -07:00
.clippy.toml Fix all remaining clippy warnings 2018-07-12 09:40:40 -06:00
.codecov.yml Adjust settings 2018-12-20 12:32:25 -08:00
.gitignore Keep .DS_Store out of the tree 2020-08-04 16:34:45 -07:00
.mergify.yml Drop support for v1.0 backports, add v1.3 support 2020-07-14 18:04:59 -07:00
.travis.yml Add ci env to travis config (#12608) (#12610) 2020-10-01 06:03:57 +00:00
CONTRIBUTING.md Move docs from book/ to docs/ (#8469) 2020-02-26 07:11:38 -08:00
Cargo.lock ip-echo-server: Don't use framed decoder, it can't be read-limited (#13570) 2020-11-13 09:16:06 +00:00
Cargo.toml Port BPFLoader2 activation to FeatureSet (bp #12490) (#12530) 2020-09-28 23:12:05 +00:00
LICENSE Change documentation introduction to indicate Foundation IP transfer (#10440) 2020-06-13 14:41:05 -07:00
README.md Make testnet section less ambiguous (#13504) (#13507) 2020-11-10 17:12:52 +00:00
RELEASE.md Remove release documentation documentation (#11090) 2020-07-15 20:55:02 -06:00
cargo Support arbitrary toolchains with cargo wrapper script (#12925) 2020-10-15 20:15:29 +00:00
fetch-perf-libs.sh Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) (#11895) 2020-08-28 20:37:26 +00:00
fetch-spl.sh Bump SPL Token version fetched for localnet (bp #13490) (#13505) 2020-11-10 18:03:53 +00:00
run.sh Show commit in `--version` and ledger-tool's log (#12636) (#12662) 2020-10-03 16:45:27 +00:00

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 development cluster

  • devnet - stable public cluster for development accessible via devnet.solana.com. Runs 24/7. Learn more about the public clusters

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.