Нет описания

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!