Keine Beschreibung

lwus d12e566a4c bigtable: allow forward proxy in gRPC connection (#25918) vor 3 Jahren
.buildkite 59177f0f39 removing name var vor 3 Jahren
.github f48d0b2b36 Add inputs to indicate minimum beta and stable releases that support the feature (#25981) vor 3 Jahren
account-decoder 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
accounts-bench 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
accounts-cluster-bench 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
banking-bench 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
banks-client 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
banks-interface 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
banks-server 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
bench-streamer 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
bench-tps 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
bloom 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
bucket_map 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
ci 5c920caf4f chore: separate publish installer process (#26137) vor 3 Jahren
clap-utils 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
clap-v3-utils 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
cli 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
cli-config 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
cli-output 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
client 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
client-test 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
core f534b8981b maps number of data shreds to erasure batch size (#25917) vor 3 Jahren
docs 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
dos 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
download-utils 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
entry 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
explorer e7597ab1fe chore:(deps): bump jsdom from 16.4.0 to 16.7.0 in /explorer (#26152) vor 3 Jahren
faucet 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
frozen-abi 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
genesis 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
genesis-utils 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
geyser-plugin-interface 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
geyser-plugin-manager 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
gossip f534b8981b maps number of data shreds to erasure batch size (#25917) vor 3 Jahren
install 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
keygen 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
ledger f534b8981b maps number of data shreds to erasure batch size (#25917) vor 3 Jahren
ledger-tool 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
local-cluster 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
log-analyzer 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
logger 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
measure 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
merkle-root-bench 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
merkle-tree 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
metrics 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
multinode-demo 8cbe93962d multinode-demo: Increase default stake amount to 10 SOL (#25365) vor 3 Jahren
net cd01c1a4ce Add profile option to net scripts (#25624) vor 3 Jahren
net-shaper 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
net-utils 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
notifier 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
perf 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
poh 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
poh-bench 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
program-runtime 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
program-test 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
programs d12e566a4c bigtable: allow forward proxy in gRPC connection (#25918) vor 3 Jahren
rayon-threadlimit 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
rbpf-cli 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
remote-wallet 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
rpc 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
rpc-test 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
runtime 355e09e1fb runtime: fix possible deadlock in in_mem_accounts_index (#26046) vor 3 Jahren
scripts 4cfcfe51a0 Update version bump check so it works on master branch (#26146) vor 3 Jahren
sdk 09d3c890e9 partially reverts #25963 (#26155) vor 3 Jahren
send-transaction-service 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
stake-accounts 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
storage-bigtable d12e566a4c bigtable: allow forward proxy in gRPC connection (#25918) vor 3 Jahren
storage-proto 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
streamer 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
sys-tuner 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
system-test 0d369616e7 add script for the traceability (#23626) vor 3 Jahren
test-validator 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
tokens 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
transaction-dos 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
transaction-status 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
upload-perf 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
validator 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
version 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
watchtower 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
web3.js 19eea3a741 chore: fix types of `RpcRequest` and `RpcBatchRequest` (#26102) vor 3 Jahren
zk-token-sdk 5c2f819f99 Bump Version to 1.11.2 (#26159) vor 3 Jahren
.clippy.toml 30f0c25b65 Fix all remaining clippy warnings vor 7 Jahren
.codecov.yml 51045962d3 Adjust settings vor 7 Jahren
.gitignore 9b06d64eb8 Add option to load accounts from file vor 3 Jahren
.mergify.yml 86f12bc89c Add github-actions bot to approved commit author list (#25927) vor 3 Jahren
.travis.yml 17b4563a6f closed explorer travis.yml after giving workflow permisssion in github action vor 3 Jahren
CONTRIBUTING.md aaf417998d Add ledger-store label description to CONTRIBUTING.md. (#25130) vor 3 Jahren
Cargo.lock d12e566a4c bigtable: allow forward proxy in gRPC connection (#25918) vor 3 Jahren
Cargo.toml 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice vor 3 Jahren
LICENSE c631a3e0e4 up year in license vor 3 Jahren
README.md c5792eddf1 update build instruction in readme (#25424) vor 3 Jahren
RELEASE.md 825b95154f Update RELEASE.md to reflect recent CI changes (#25925) vor 3 Jahren
SECURITY.md fbf7143a97 Update SECURITY.md (#25946) vor 3 Jahren
cargo 6cd4bc5e60 Speed up net.sh builds (#16360) vor 4 Jahren
cargo-build-bpf 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice vor 3 Jahren
cargo-build-sbf 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice vor 3 Jahren
cargo-test-bpf 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice vor 3 Jahren
cargo-test-sbf 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice vor 3 Jahren
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) vor 5 Jahren
fetch-spl.sh c43afe2d7f spl: Bump token to v3.3.0 and ATA to v1.0.5 (#22649) vor 3 Jahren
run.sh 33de7b856f add some guidance in place of `./run.sh` vor 4 Jahren
rustfmt.toml 70ebab2c82 Add rustfmt.toml and `cargo fmt` (#23238) vor 3 Jahren
test-abi.sh a4956844bd Update frozen_abi hashes vor 5 Jahren
vercel.json 1c36af158f removing the "autoJobCancelation": false vor 4 Jahren

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, protobuf etc. On Ubuntu:

$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler

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.