Go to file
mergify[bot] 81a4769de7
Fix parsing CreateAccountWithSeed instructions (#13513) (#13516)
* Reduce required num_system_accounts and handle 2-account instructions properly

* Update CreateAccountWithSeed account docs to be correct

* Add CreateAccountWithSeed test

(cherry picked from commit 91f4e99b4c)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-11 01:01:38 +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 Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
accounts-bench Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
banking-bench Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
banks-client Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
banks-interface Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
banks-server Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
bench-exchange Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
bench-streamer Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
bench-tps Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
ci CI: Check monorepo for consistent crate versions (bp #13431) (#13432) 2020-11-06 02:27:51 +00:00
clap-utils Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand` 2020-10-21 20:27:57 -07:00
cli Switch to dirs-next 2020-10-31 19:00:22 +00:00
cli-config Switch to dirs-next 2020-10-31 19:00:22 +00:00
cli-output Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
client Cli: deploy programs via TPU (#13090) (#13110) 2020-10-23 17:14:37 +00:00
core Fix signature access (#13491) (#13502) 2020-11-10 18:03:10 +00:00
crate-features Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
docs docs: Clarify the commitment levels based on questions (#13387) (#13425) 2020-11-05 19:38:59 +00:00
dos Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
download-utils Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
explorer Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
faucet Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
genesis Remove unused pubkey::Pubkey imports 2020-10-21 20:27:57 -07:00
genesis-programs Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
gossip Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
install Switch to dirs-next 2020-10-31 19:00:22 +00:00
keygen Switch to dirs-next 2020-10-31 19:00:22 +00:00
ledger Allow feature builtins to overwrite existing builtins (bp #13403) (#13419) 2020-11-05 17:53:03 +00:00
ledger-tool Output more inflation calc details in ledger-tool (bp #13345) (#13466) 2020-11-08 09:03:09 +00:00
local-cluster Fix duplicate records of inner instructions (#13380) (#13412) 2020-11-05 08:44:16 +00:00
log-analyzer Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
logger Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
measure Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
merkle-tree Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
metrics Bump version to 1.3.20 2020-10-22 00:08:28 +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 Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
net-utils Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
notifier Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
perf improves threads' utilization in processing gossip packets (#12962) (#13251) 2020-10-29 13:59:12 +00:00
poh-bench Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
programs Clean up Delegation::stake_activating_and_deactivating (#13471) (#13472) 2020-11-09 09:52:34 +00:00
ramp-tps Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
rayon-threadlimit Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
remote-wallet Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand` 2020-10-21 20:27:57 -07:00
runtime Fix parsing CreateAccountWithSeed instructions (#13513) (#13516) 2020-11-11 01:01:38 +00:00
scripts CI: Check monorepo for consistent crate versions (bp #13431) (#13432) 2020-11-06 02:27:51 +00:00
sdk Fix parsing CreateAccountWithSeed instructions (#13513) (#13516) 2020-11-11 01:01:38 +00:00
stake-accounts Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand` 2020-10-21 20:27:57 -07:00
stake-monitor Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
stake-o-matic Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
storage-bigtable Fix BigTable reward type encoding (bp #13142) (#13146) 2020-10-26 08:18:05 +00:00
streamer Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
sys-tuner Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
system-test Modernize python scripts (#12595) 2020-09-30 18:24:49 +00:00
tokens Switch to dirs-next 2020-10-31 19:00:22 +00:00
transaction-status Fix parsing CreateAccountWithSeed instructions (#13513) (#13516) 2020-11-11 01:01:38 +00:00
upload-perf Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
validator Allow nodes to advertise a different rpc address over gossip (#13053) (#13077) 2020-10-22 04:44:41 +00:00
version Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
vote-signer Bump version to 1.3.20 2020-10-22 00:08:28 +00:00
watchtower watchtower: Fix all clear duration message (#13509) 2020-11-10 19:01:13 +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 Output more inflation calc details in ledger-tool (bp #13345) (#13466) 2020-11-08 09:03:09 +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.