Ei kuvausta

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

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!