Go to file
dependabot[bot] e3570a060a
chore: bump borsh from 0.9.1 to 0.9.2 (#22765)
* chore: bump borsh from 0.9.1 to 0.9.2

Bumps [borsh](https://github.com/near/borsh-rs) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/near/borsh-rs/releases)
- [Changelog](https://github.com/near/borsh-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/near/borsh-rs/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: borsh
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-01-27 12:45:09 -07:00
.buildkite Clear release cache for stable-perf (#17287) 2021-05-17 17:28:52 -06:00
.github add command to get vercel preview url on slack 2022-01-27 21:10:26 +05:30
.travis chore(web3): use github actions (#19816) 2021-09-13 16:37:18 -05:00
account-decoder chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
accounts-bench Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
accounts-cluster-bench Pacify clippy 2022-01-21 19:12:57 -08:00
accountsdb-plugin-interface Add docs for notifying transactions via plugin (#22097) 2021-12-29 16:22:13 -08:00
accountsdb-plugin-manager chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
banking-bench Optimize packet dedup (#22571) 2022-01-19 13:58:20 -08:00
banks-client chore: bump borsh from 0.9.1 to 0.9.2 (#22765) 2022-01-27 12:45:09 -07:00
banks-interface chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
banks-server convert std::sync::mpsc to crossbeam_channel (#22264) 2022-01-11 02:44:46 -08:00
bench-streamer convert std::sync::mpsc to crossbeam_channel (#22264) 2022-01-11 02:44:46 -08:00
bench-tps chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
bloom chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
book/src/proposals Proposal to handle duplicate blocks (#16127) 2021-07-08 04:36:11 +00:00
bucket_map Use modular_bitfield to bitpack IndexEntry (#22447) 2022-01-12 14:37:34 -06:00
ci Always contact release.solana.com over https 2022-01-27 19:40:19 +00:00
clap-utils Pacify clippy 2022-01-21 19:12:57 -08:00
cli Add solana_client::nonblocking::RpcClient 2022-01-26 17:58:00 -08:00
cli-config chore: bump anyhow from 1.0.52 to 1.0.53 (#22743) 2022-01-25 21:10:34 -07:00
cli-output chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
client Add vote account address to vote subscription 2022-01-27 08:22:29 -08:00
client-test Drop feature, move to nonblocking mod 2022-01-27 08:19:03 -08:00
core Add vote account address to vote subscription 2022-01-27 08:22:29 -08:00
docs Update vote-signing.md to remove references to anachronistic behavior 2022-01-25 15:27:58 -08:00
dos Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
download-utils Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
entry Handle already discarded packets in gpu sigverify path (#22680) 2022-01-24 14:35:47 +01:00
explorer restore explorer's rpc endpoint 2022-01-22 16:18:41 -05:00
faucet chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
frozen-abi chore: remove remaining unused Xargo.toml files 2022-01-24 15:35:54 -08:00
genesis chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
genesis-utils Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
gossip Pacify clippy 2022-01-21 19:12:57 -08:00
install Always contact release.solana.com over https 2022-01-27 19:40:19 +00:00
keygen chore: bump num_cpus from 1.13.0 to 1.13.1 (#22044) 2021-12-21 00:06:14 -07:00
ledger Pacify clippy 2022-01-21 19:12:57 -08:00
ledger-tool chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
local-cluster Set the correct root in block commitment cache initialization (#22750) 2022-01-27 00:48:00 +08:00
log-analyzer chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
logger Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
measure Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
merkle-root-bench Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
merkle-tree chore: remove remaining unused Xargo.toml files 2022-01-24 15:35:54 -08:00
metrics Pacify clippy 2022-01-21 19:12:57 -08:00
multinode-demo Bugfix/block subscribe (#22516) 2022-01-14 19:53:34 -07:00
net undoing the changes for the traceability (#22642) 2022-01-22 23:27:13 +11:00
net-shaper chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
net-utils chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
notifier Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
perf Handle already discarded packets in gpu sigverify path (#22680) 2022-01-24 14:35:47 +01:00
poh Improve poh recorder metrics (#22730) 2022-01-27 08:44:41 +08:00
poh-bench Don't publish poh-bench to crates.io 2021-12-14 12:09:39 -08:00
program-runtime fix: Adjust mem op base cost to avoid breaking Raydium AMM Program (#22762) 2022-01-27 02:01:57 +00:00
program-test chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
programs chore: bump borsh from 0.9.1 to 0.9.2 (#22765) 2022-01-27 12:45:09 -07:00
rayon-threadlimit chore: bump num_cpus from 1.13.0 to 1.13.1 (#22044) 2021-12-21 00:06:14 -07:00
rbpf-cli chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
remote-wallet Pacify clippy 2022-01-21 19:12:57 -08:00
replica-lib chore: bump tonic-build from 0.6.0 to 0.6.2 (#21764) 2021-12-10 09:31:15 +00:00
replica-node Set the correct root in block commitment cache initialization (#22750) 2022-01-27 00:48:00 +08:00
rpc Add vote account address to vote subscription 2022-01-27 08:22:29 -08:00
rpc-test chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
runtime SortedStoragesIter to remove random access requirement (#22713) 2022-01-27 10:25:13 -06:00
scripts ci: Patch solana-account-decoder for downstream builds (#22472) 2022-01-13 02:02:36 +01:00
sdk chore: bump borsh from 0.9.1 to 0.9.2 (#22765) 2022-01-27 12:45:09 -07:00
send-transaction-service convert std::sync::mpsc to crossbeam_channel (#22264) 2022-01-11 02:44:46 -08:00
stake-accounts Remove active features stake program v3 and v4 (#22612) 2022-01-21 19:27:53 -06:00
storage-bigtable chore: bump anyhow from 1.0.52 to 1.0.53 (#22743) 2022-01-25 21:10:34 -07:00
storage-proto chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
streamer Pacify clippy 2022-01-21 19:12:57 -08:00
sys-tuner chore: bump nix from 0.23.0 to 0.23.1 (#21998) 2021-12-18 11:04:45 -07:00
system-test fixing CI 2022-01-17 16:12:24 +05:30
test-validator solana-test-validator now supports the `--rpc-pubsub-enable-vote-subscription` flag 2022-01-27 08:22:29 -08:00
tokens Bump tempfile from 3.2.0 to 3.3.0 (#22401) 2022-01-09 12:26:08 -07:00
transaction-dos Bump version to v1.10.0 2021-12-04 20:17:54 +00:00
transaction-status chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
upload-perf chore: bump serde_json from 1.0.75 to 1.0.78 (#22748) 2022-01-26 18:01:02 -07:00
validator solana-test-validator now supports the `--rpc-pubsub-enable-vote-subscription` flag 2022-01-27 08:22:29 -08:00
version chore: bump serde from 1.0.133 to 1.0.134 (#22650) 2022-01-21 17:14:02 -07:00
watchtower Pacify clippy 2022-01-21 19:12:57 -08:00
web3.js chore: remove remaining unused Xargo.toml files 2022-01-24 15:35:54 -08:00
zk-token-sdk chore: remove time dep (#22665) 2022-01-25 16:30:21 -07:00
.clippy.toml
.codecov.yml
.gitignore Add option to load accounts from file 2021-12-15 11:05:02 -08:00
.mergify.yml Restrict the Mergify copy command to core contributors 2022-01-27 09:07:50 -08:00
.travis.yml removed explorer .travis.yml from main .travis.yml 2021-12-17 21:30:39 +05:30
CONTRIBUTING.md Fix CONTRIBUTING wording (#22291) 2022-01-05 06:27:10 +00:00
Cargo.lock chore: bump borsh from 0.9.1 to 0.9.2 (#22765) 2022-01-27 12:45:09 -07:00
Cargo.toml Optimize packet dedup (#22571) 2022-01-19 13:58:20 -08:00
LICENSE
README.md Remove obsolete M1 setup information 2022-01-04 21:14:13 +00:00
RELEASE.md Update release documentation (#22086) 2021-12-22 22:51:32 -06:00
SECURITY.md Update security bounty levels (#20471) 2021-10-06 13:57:52 -06:00
cargo Speed up net.sh builds (#16360) 2021-04-07 14:45:03 +08:00
cargo-build-bpf Add helper crate to generate syscalls.txt 2021-12-14 21:20:13 -08:00
cargo-test-bpf Add cargo-test-bpf 2020-11-05 14:29:17 -08:00
fetch-perf-libs.sh
fetch-spl.sh feature: add new token program feature (#18780) 2021-07-21 14:34:25 +02:00
run.sh add some guidance in place of `./run.sh` 2021-09-11 14:49:17 -06:00
test-abi.sh Update frozen_abi hashes 2020-10-24 08:37:55 -07:00
vercel.json removing the "autoJobCancelation": false 2021-10-07 20:49:58 +05:30

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

When building the master branch, please make sure you are using the latest stable rust version by running:

$ rustup update

When building a specific release branch, you should check the rust version in ci/rust-version.sh and if necessary, install that version by running:

$ rustup install VERSION

Note that if this is not the latest rust version on your machine, cargo commands may require an override in order to use the correct version.

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 make

2. Download the source code.

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

3. Build.

$ cargo build

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 the 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 Solana Foundation's ("SF") good faith efforts. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore, nothing in this project constitutes a solicitation for investment.

Any content produced by SF or developer resources that SF provides are for educational and inspirational purposes only. SF does not encourage, induce or sanction the deployment, integration or use of any such applications (including the code comprising the Solana blockchain protocol) in violation of applicable laws or regulations and hereby prohibits any such deployment, integration or use. This includes the use of any such applications by the reader (a) in violation of export control or sanctions laws of the United States or any other applicable jurisdiction, (b) if the reader is located in or ordinarily resident in a country or territory subject to comprehensive sanctions administered by the U.S. Office of Foreign Assets Control (OFAC), or (c) if the reader is or is working on behalf of a Specially Designated National (SDN) or a person subject to similar blocking or denied party prohibitions.

The reader should be aware that U.S. export control and sanctions laws prohibit U.S. persons (and other persons that are subject to such laws) from transacting with persons in certain countries and territories or that are on the SDN list. As a project-based primarily on open-source software, it is possible that such sanctioned persons may nevertheless bypass prohibitions, obtain the code comprising the Solana blockchain protocol (or other project code or applications) and deploy, integrate, or otherwise use it. Accordingly, there is a risk to individuals that other persons using the Solana blockchain protocol may be sanctioned persons and that transactions with such persons would be a violation of U.S. export controls and sanctions law. This risk applies to individuals, organizations, and other ecosystem participants that deploy, integrate, or use the Solana blockchain protocol code directly (e.g., as a node operator), and individuals that transact on the Solana blockchain through light clients, third party interfaces, and/or wallet software.