Açıklama Yok

Ryo Onodera 0b9c040fcf Add .codecov.yml with checks disabled (#30666) 2 yıl önce
.buildkite 04e52f5475 ci: remove ejson (#30653) 2 yıl önce
.github 17369dc8f0 ci: extract vercel scope as an env (#30441) 2 yıl önce
account-decoder 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
accounts-bench df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
accounts-cluster-bench df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
banking-bench df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
banks-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
banks-interface df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
banks-server df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
bench-streamer df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
bench-tps 2c37763d7c Improve cli args parsing in bench-tps (#30307) 2 yıl önce
bloom df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
bucket_map 2441a06e78 drop default from PhantomData::default() (#30476) 2 yıl önce
cd e48456dbbc Create continuous delivery directory and add readme with canary details. (#27683) 3 yıl önce
ci 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
clap-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
clap-v3-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
cli df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
cli-config df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
cli-output df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
client-test df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
connection-cache 5136ed3448 Update homepage value for all crates (#30444) 2 yıl önce
core b0112a5f43 BankingStage Consumer: test_buffered_packets* reworking (#30615) 2 yıl önce
docs 569c5fd9d6 [docs] Fix `dataSlice` definition (#30648) 2 yıl önce
dos df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
download-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
entry 2badf962be doc: entry::Entry: More details on the `transactions` field (#29949) 2 yıl önce
faucet df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
frozen-abi df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
genesis 5631685d30 replaced chunks with tuples in validator (#30499) 2 yıl önce
genesis-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
geyser-plugin-interface df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
geyser-plugin-manager 33e179905f getter functions for StoredAccountMeta (#30447) 2 yıl önce
gossip df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
install 35427ee5a9 test: add test_load_serde_yaml_v_0_8_config (#30558) 2 yıl önce
keygen df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
ledger 70c6c7e1f7 Uses strong types for snapshot hashes in SnapshotPackagerService (#30603) 2 yıl önce
ledger-tool db94e4564f ledger-tool: Avoid creating SanitizedTransaction in print command (#30575) 2 yıl önce
local-cluster 7b1d446001 Admin RPC Service: move post-init activation to before wait-for-supermajority (#30544) 2 yıl önce
log-analyzer df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
logger df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
measure df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
memory-management df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
merkle-root-bench df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
merkle-tree df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
metrics df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
multinode-demo 045b9fec11 Add --allow-private-addr to bootstrap-validator.sh (#30163) 2 yıl önce
net eb4e7584b9 Tweak net.sh docs for primordial stakes (#30586) 2 yıl önce
net-shaper df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
net-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
notifier df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
perf ee81679804 Not to tag versioned transaction as simple_vote_tx (#30517) 2 yıl önce
poh df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
poh-bench df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
program-runtime 36d773810a Add Executor Cache Eviction Strategy (#30526) 2 yıl önce
program-test 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
programs 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
pubsub-client 9243fac18f Disambiguate tx = transaction, tx = sender in `pubsub-client` (#30519) 2 yıl önce
quic-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rayon-threadlimit df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rbpf-cli df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
remote-wallet df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rpc 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
rpc-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rpc-client-api df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rpc-client-nonce-utils df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
rpc-test df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
runtime 0b9c040fcf Add .codecov.yml with checks disabled (#30666) 2 yıl önce
scripts 21f1b652a7 ci: reorg downstream projects (#30463) 2 yıl önce
sdk 3b9438fd49 Replace hardcoded loaded accounts size limit with compute budget instruction (#30506) 2 yıl önce
send-transaction-service df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
stake-accounts df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
storage-bigtable df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
storage-proto 3b9438fd49 Replace hardcoded loaded accounts size limit with compute budget instruction (#30506) 2 yıl önce
streamer df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
sys-tuner df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
system-test 676e3e1926 fix: remove unnecessary --allow-private-addr setup (#30552) 2 yıl önce
test-validator 7b1d446001 Admin RPC Service: move post-init activation to before wait-for-supermajority (#30544) 2 yıl önce
thin-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
tokens df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
tpu-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
transaction-dos df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
transaction-status 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
udp-client df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
upload-perf df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
validator 76eef7ed0d Require minimum of 2 ticks per slot for test val (#30646) 2 yıl önce
version df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
watchtower df3ef111f7 chore: workspace inheritance (#29893) 2 yıl önce
web3.js 18c22c7cef Add link to new web3.js repo (#30096) 2 yıl önce
zk-token-sdk af59cced5a chore: bump bincode to 1.3.3 (#30489) 2 yıl önce
.clippy.toml 30f0c25b65 Fix all remaining clippy warnings 7 yıl önce
.codecov.yml 0b9c040fcf Add .codecov.yml with checks disabled (#30666) 2 yıl önce
.gitignore b36791956e Ingest duplicate proofs sent through Gossip (#29227) 2 yıl önce
.mergify.yml 63052ed463 CI: Remove mergify backport config for v1.13 (#30520) 2 yıl önce
.travis.yml 3c01f4dd76 chore: remove Explorer build scripts from the Monorepo (#30262) 2 yıl önce
CONTRIBUTING.md a12bf8c003 Update maintainers references (#29997) 2 yıl önce
Cargo.lock 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
Cargo.toml 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
LICENSE 1de87c00a7 update license 2 yıl önce
README.md 8f8c0a4818 update disclaimer 2 yıl önce
RELEASE.md e0a10eb017 RELEASE.md cleanup (#28007) 3 yıl önce
SECURITY.md a3e4c96bc0 security.txt - pinging admins is a good way to get banned (#30567) 2 yıl önce
cargo 6cd4bc5e60 Speed up net.sh builds (#16360) 4 yıl önce
cargo-build-bpf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2 yıl önce
cargo-build-sbf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2 yıl önce
cargo-test-bpf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2 yıl önce
cargo-test-sbf 49f4e2ae05 replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2 yıl önce
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) 5 yıl önce
fetch-spl.sh 4a94eeee5e Upgrade to token-2022 0.6.0 (#30353) 2 yıl önce
run.sh 33de7b856f add some guidance in place of `./run.sh` 4 yıl önce
rust-toolchain.toml f91e63dfe9 Upgrades Rust to 1.67.1 (#29947) 2 yıl önce
rustfmt.toml 70ebab2c82 Add rustfmt.toml and `cargo fmt` (#23238) 3 yıl önce
test-abi.sh a4956844bd Update frozen_abi hashes 5 yıl önce
vercel.json 1c36af158f removing the "autoJobCancelation": false 4 yıl önce

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

On Fedora:

$ sudo dnf install openssl-devel systemd-devel pkg-config zlib-devel llvm clang cmake make protobuf-devel protobuf-compiler perl-core

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 Labs, Inc. (“SL”) 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 SL or developer resources that SL provides are for educational and inspirational purposes only. SL 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. Accordingly, there is a risk to individuals that other persons using any of the code contained in this repo, or a derivation thereof, may be sanctioned persons and that transactions with such persons would be a violation of U.S. export controls and sanctions law.