Тайлбар байхгүй

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

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!