Aucune description

mergify[bot] 23e01995a3 v2.2: ci: fix docs publishing for beta tag (backport of #7018) (#7033) il y a 4 mois
.buildkite fd5165e6cb ci: run 5 partitions for tests (#4389) il y a 10 mois
.github ba420b928d v2.2: ci(windows): use vcpkg to install openssl 3.4.1 (backport of #6824) (#6833) il y a 4 mois
account-decoder 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
account-decoder-client-types 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
accounts-bench 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
accounts-cluster-bench 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
accounts-db 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
banking-bench 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
banking-stage-ingress-types 6b6a03ba8b Apply cleanups to solana-core for unified scheduler (#4123) il y a 10 mois
banks-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
banks-interface 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
banks-server 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
bench-streamer 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
bench-tps 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
bench-vote 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
bloom 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
bucket_map 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
builtins cd76bf6b8d v2.2: Migrate from solana-feature-set to agave-feature-set (backport of #5520) (#5537) il y a 7 mois
builtins-default-costs 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
cargo-registry 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
cd e48456dbbc Create continuous delivery directory and add readme with canary details. (#27683) il y a 3 ans
ci 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
clap-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
clap-v3-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
cli 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
cli-config 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
cli-output 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
client-test 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
compute-budget 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
compute-budget-instruction 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
connection-cache 4a53270792 simplifies ContactInfo::get_socket return type to Option<SocketAddr> (#4292) il y a 10 mois
core 8579639bc5 v2.2: consensus: remove early return in OC loop to fix RPC notifications (backport of #6645) (#6680) il y a 4 mois
cost-model 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
curves 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
docker-solana 9b8b4b9609 v2.2: docs: fix docker link (backport of #6180) (#6184) il y a 6 mois
docs 23e01995a3 v2.2: ci: fix docs publishing for beta tag (backport of #7018) (#7033) il y a 4 mois
dos 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
download-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
entry 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
faucet 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
feature-set db2d55a1b7 v2.2: Update SIMDs for SBPF versions. (backport of #6784) (#6790) il y a 4 mois
fee cd76bf6b8d v2.2: Migrate from solana-feature-set to agave-feature-set (backport of #5520) (#5537) il y a 7 mois
genesis 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
genesis-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
geyser-plugin-interface 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
geyser-plugin-manager 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
gossip 2c01acd387 v2.2: make `DuplicateShred::_unused_shred_type` a `u8` (backport of #6801) (#6839) il y a 4 mois
inline-spl 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
install 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
keygen 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
lattice-hash 51a114eeca add missing description for solana-lattice-hash (#3358) il y a 1 an
ledger 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
ledger-tool 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
local-cluster 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
log-analyzer 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
log-collector 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
measure a0b2c73cfe relax measure macros test check (#3517) il y a 1 an
memory-management 076329381a Moves a clippy attribute (#194) il y a 1 an
merkle-root-bench 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
merkle-tree 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
metrics 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
multinode-demo 535ea1ef0c TransactionView: ReceiveAndBuffer (#3820) il y a 10 mois
net 007194391c typo fixes (#4118) il y a 11 mois
net-shaper 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
net-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
notifier 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
perf 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
platform-tools-sdk f56c11e2ba Bump version to v2.2.21 (#6944) il y a 4 mois
poh 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
poh-bench 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
poseidon 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
precompiles 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
program-runtime 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
program-test eb9400b276 v2.2: Serializes rent_epoch as u64::MAX in VM (backport of #5554) (#5648) il y a 7 mois
programs f56c11e2ba Bump version to v2.2.21 (#6944) il y a 4 mois
pubsub-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
quic-client d63bd1c74e Make tpu coalescer channel bounded (#4478) il y a 10 mois
rayon-threadlimit 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rbpf-cli 3f9a7a52ea [anza migration] rename crates (#10) il y a 1 an
remote-wallet 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
reserved-account-keys 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rpc 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rpc-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rpc-client-api 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rpc-client-nonce-utils 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
rpc-test 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
runtime b097f8e1e5 v2.2: Recalculates the accounts lt hash when creating minimized snapshots (backport of #6843) (#6871) il y a 4 mois
runtime-transaction 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
scripts cfc140a08a v2.2: fix logic in version bump script (backport of #6691) (#6727) il y a 4 mois
sdk 6e47286d6d v2.2: sdk: Remove everything from the repo (#4867) (#4889) il y a 9 mois
send-transaction-service 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
stake-accounts 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
storage-bigtable 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
storage-proto 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
streamer dabc99a539 v2.2: TPU: optimize rate limits (backport of #6937) (#6938) il y a 4 mois
svm f56c11e2ba Bump version to v2.2.21 (#6944) il y a 4 mois
svm-conformance 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
svm-rent-collector 7a1e57469a v2.2: Refactor - `TransactionContext` guards `AccountSharedData` (backport of #5698) (#5708) il y a 7 mois
svm-transaction eb41682534 separate functions for different signature types (#4354) il y a 10 mois
system-test 3f9a7a52ea [anza migration] rename crates (#10) il y a 1 an
test-validator 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
thin-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
thread-manager 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
timings 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
tls-utils 85b6118684 tpu-client-next: return receiver in scheduler::run (#4454) il y a 10 mois
tokens 8b7e54b4d1 v2.2: deps: Relax spl dependencies (backport of #5704) (#5981) il y a 6 mois
tps-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
tpu-client 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
tpu-client-next dabc99a539 v2.2: TPU: optimize rate limits (backport of #6937) (#6938) il y a 4 mois
transaction-context 1bcdaab0f3 v2.2: Patch transaction-context to fix crate resolution (#6731) il y a 4 mois
transaction-dos 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
transaction-metrics-tracker 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
transaction-status 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
transaction-status-client-types 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
transaction-view 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
turbine 83485d12d9 v2.2: rolls out chained Merkle shreds to 100% of mainnet slots (backport of #5735) (#5745) il y a 7 mois
type-overrides 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
udp-client 45c10695e0 update socket config and create builder pattern (#3929) il y a 10 mois
unified-scheduler-logic e8463351d9 Support tx poh recording in unified scheduler (#4150) il y a 10 mois
unified-scheduler-pool 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
upload-perf 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
validator 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
version 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
vortexor 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
vote 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
watchtower 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
web3.js 18c22c7cef Add link to new web3.js repo (#30096) il y a 2 ans
wen-restart 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
zk-keygen 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
zk-sdk 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
zk-token-sdk 0212791af5 v2.2: bump cargo sort to v2 (#6582) il y a 5 mois
.clippy.toml 399eedfb5d use net utils for binding UDP sockets (#3705) il y a 11 mois
.codecov.yml 0b9c040fcf Add .codecov.yml with checks disabled (#30666) il y a 2 ans
.gitignore ddee03e60d Extract log collector crate (#2025) il y a 1 an
.mergify.yml e0a2e66252 sdk: Create new Cargo workspace for sdk/ (#4685) il y a 9 mois
CHANGELOG.md 78521c1be3 v2.2 Remove channels section from CHANGELOG.md (#6739) il y a 4 mois
CONTRIBUTING.md 31cdd163d1 Update CONTRIBUTING.md (#4819) il y a 9 mois
Cargo.lock f56c11e2ba Bump version to v2.2.21 (#6944) il y a 4 mois
Cargo.toml f56c11e2ba Bump version to v2.2.21 (#6944) il y a 4 mois
LICENSE c65605802a Correct LICENSE to conform with https://apache.org/licenses/LICENSE-2.0 (#31860) il y a 2 ans
README.md f3405d89eb README: Link to `docs/src/cli/install.md` to build and install for production (#3698) il y a 11 mois
RELEASE.md d060c30b5e Update RELEASE.md (#1901) il y a 1 an
SECURITY.md 5e80a7ca7b Update security email to security@anza.xyz (#2598) il y a 1 an
cargo 6cd4bc5e60 Speed up net.sh builds (#16360) il y a 4 ans
cargo-build-sbf f9f73a952a sdk: Move out things that won't be in the sdk (#4624) il y a 9 mois
cargo-test-sbf f9f73a952a sdk: Move out things that won't be in the sdk (#4624) il y a 9 mois
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) il y a 5 ans
fetch-spl.sh 90eda8b573 v2.2: spl: Update to newest token-2022 binary on mainnet (backport of #5628) (#5631) il y a 7 mois
nextest.toml d4946ddfaa ci: move solana-cargo-build-sbf to nextest (#33257) il y a 2 ans
run.sh fc2a8794be [docs] updated readme and fix links (#34565) il y a 1 an
rust-toolchain.toml 1e3a502bcc Upgrades Rust to 1.84.1 (#4788) il y a 9 mois
rustfmt.toml 70ebab2c82 Add rustfmt.toml and `cargo fmt` (#23238) il y a 3 ans
test-abi.sh cadba689cb Make solana-frozen-abi optional in all remaining crates (#1278) il y a 1 an
vercel.json 1c36af158f removing the "autoJobCancelation": false il y a 4 ans

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/anza-xyz/agave.git
$ cd agave

3. Build.

$ ./cargo build

[!NOTE] Note that this builds a debug version that is not suitable for running a testnet or mainnet validator. Please read docs/src/cli/install.md for instructions to build a release version for test and production uses.

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!