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

mergify[bot] edda5bc036 v3.0: ci: move docs deploy logic out of build script (backport of #9124) (#9134) 1 өдөр өмнө
.buildkite d676f0e110 ci: improve step descriptions (#6664) 4 сар өмнө
.cargo be73302abd force x86_64-v2 cpu for linux builds (fixup for #5674) (#5891) 7 сар өмнө
.config 983b97f011 ci: remove useless nextest config (#7491) 3 сар өмнө
.github edda5bc036 v3.0: ci: move docs deploy logic out of build script (backport of #9124) (#9134) 1 өдөр өмнө
account-decoder 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
account-decoder-client-types 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
accounts-cluster-bench 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
accounts-db d736bca774 v3.0: Breaks loop early in AppendVec::scan_accounts_stored_meta() (backport of #8707) (#8734) 3 долоо хоног өмнө
banking-bench 25738db166 BankingStage: add owned context for spawning non-vote threads (#7603) 3 сар өмнө
banking-stage-ingress-types 6b6a03ba8b Apply cleanups to solana-core for unified scheduler (#4123) 10 сар өмнө
banks-client 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
banks-interface 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
banks-server 0da231c1d4 Simulate transaction with balances (#6750) 3 сар өмнө
bench-streamer 2d1b481f0a chore: Use jemalloc in all bench crates and modules (#5053) 4 сар өмнө
bench-tps 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
bench-vote 8854e65d81 Streamer: code cleanup (#7320) 3 сар өмнө
bloom 7db66d550d bloom: move benchmarks to bencher 0.1.5 (#6044) 4 сар өмнө
bucket_map 0b53c005b8 Revert "bucket-map: move benchmarks to bencher 0.1.5 (#6092)" (#7211) 3 сар өмнө
builtins 246300b2b6 slashing: enshrine the slashing program (#4942) 7 сар өмнө
builtins-default-costs 21e149ee55 remove get_builtin_instruction_cost (#7231) 3 сар өмнө
cargo-registry 31cd4ef859 cargo-registry: Resolve Rust 1.88 clippy lints and format strings (#7002) 4 сар өмнө
cd e48456dbbc Create continuous delivery directory and add readme with canary details. (#27683) 3 жил өмнө
ci 1e9a2d6cf2 v3.0: build: update publish-tarball.sh script (backport of #8110) (#8132) 1 сар өмнө
clap-utils 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
clap-v3-utils 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
cli 4ee0b8b5e7 v3.0: bump solana-stake-interface from 2.0.0 to 2.0.1 (backport of #7919) (#7958) 2 сар өмнө
cli-config 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
cli-output 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
client 98d5e225b8 client - remove deprecated SendAndConfirmConfig (v1) (#7631) 3 сар өмнө
client-test 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
compute-budget daf79ba21b clean up activated `loosen_cpi_size_restriction` feature (#7529) 3 сар өмнө
compute-budget-instruction 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
connection-cache e1d78e1d04 fix port binding for tests in connection cache (#7490) 3 сар өмнө
core b22eda24d1 v3.0: XDP: add bond interface support for zero copy (backport of #9004) (#9052) 4 өдөр өмнө
cost-model 20a4683e13 v3.0: CostTracker: Add a getter to expose cost by writable accounts (backport of #7920) (#8174) 1 сар өмнө
curves 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
docker-solana e19a786c83 docs: fix docker link (#6180) 6 сар өмнө
docs edda5bc036 v3.0: ci: move docs deploy logic out of build script (backport of #9124) (#9134) 1 өдөр өмнө
dos d114a9055d build(deps): bump solana-logger from 2.3.1 to 3.0.0 (#7367) 3 сар өмнө
download-utils ce73ca8f9a Removes deprecated snapshot archive formats (#6541) 5 сар өмнө
entry 94c3c84771 rayon-threadlimit: Deprecate get_max_thread_count() (#7071) 4 сар өмнө
faucet 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
feature-set 01781bb975 v3.0: Fix - Restrict address space of sysvar syscalls in SIMD-0219 (backport of #7832) (#7959) 2 сар өмнө
fee 1e11ee2b96 pub calculate_signature_fee (#7232) 3 сар өмнө
genesis 4ee0b8b5e7 v3.0: bump solana-stake-interface from 2.0.0 to 2.0.1 (backport of #7919) (#7958) 2 сар өмнө
genesis-utils 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
geyser-plugin-interface 4221d962ba Update geyser documentations (#5571) 3 сар өмнө
geyser-plugin-manager 64382a56ec rpc: Resolve Rust 1.88 clippy lints and format strings (#7047) 4 сар өмнө
gossip 304fc49376 v3.0: Gossip: Remove leaky `RwLockReadGuard` around `Arc<Keypair>` (backport of #8546) (#8578) 1 сар өмнө
install 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
io-uring 6c80057133 Use io_uring for creating files when unpacking snapshot (#6671) 3 сар өмнө
keygen 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
lattice-hash 51a114eeca add missing description for solana-lattice-hash (#3358) 1 жил өмнө
ledger a705e5e57e v3.0: ensure BitVec deser has correct len/cap (backport of #8488) (#8618) 1 сар өмнө
ledger-tool 2f6884eda9 v3.0: ledger-tool: Removes --snapshot-archive-path (backport of #8296) (#8355) 1 сар өмнө
local-cluster 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
low-pass-filter b52fe73afc Change to agave-low-pass-filter and publish (#7577) 3 сар өмнө
measure a0b2c73cfe relax measure macros test check (#3517) 1 жил өмнө
memory-management 076329381a Moves a clippy attribute (#194) 1 жил өмнө
merkle-tree 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
metrics a3e546e0ce Remove sleep and change expectations for test_submit_exceed_max_rate (#7313) 3 сар өмнө
multinode-demo e218d961a1 deprecate `--gossip-host` in favor of `--bind-address` (#6519) 5 сар өмнө
net e11a1aa857 net.sh: add --copy-program (#7155) 3 сар өмнө
net-shaper d114a9055d build(deps): bump solana-logger from 2.3.1 to 3.0.0 (#7367) 3 сар өмнө
net-utils 94f1f503ff Multihoming: Switch gossip socket to `Arc<[UdpSocket]>` and bind both at startup (#7535) 3 сар өмнө
notifier 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
perf 9793f17004 ledger: Check whether the shred is resigned before calling `resign_shred` (#6735) 3 сар өмнө
platform-tools-sdk 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
poh 6c26728276 DecisionMaker - lock-free (#7372) 3 сар өмнө
poh-bench 94c3c84771 rayon-threadlimit: Deprecate get_max_thread_count() (#7071) 4 сар өмнө
poseidon 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
precompiles 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
program-runtime 602c0e6dab v3.0: program-runtime: drop metrics (backport of #7807) (#7827) 2 сар өмнө
program-test 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
programs 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
pubsub-client 60a34ecc9c pubsub-client: Remove deprecated set_node_version (#7117) 4 сар өмнө
quic-client e1d78e1d04 fix port binding for tests in connection cache (#7490) 3 сар өмнө
rayon-threadlimit 94c3c84771 rayon-threadlimit: Deprecate get_max_thread_count() (#7071) 4 сар өмнө
rbpf-cli 3f9a7a52ea [anza migration] rename crates (#10) 1 жил өмнө
remote-wallet 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
reserved-account-keys 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
rpc 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
rpc-client 9c181a4fbe v3.0: fix: use proper serialization for versioned messages in get_fee_for_m… (backport of #7719) (#8139) 1 сар өмнө
rpc-client-api 0da231c1d4 Simulate transaction with balances (#6750) 3 сар өмнө
rpc-client-nonce-utils 234afe489a chore: Fix several crate documentation links (#6601) 5 сар өмнө
rpc-client-types 0da231c1d4 Simulate transaction with balances (#6750) 3 сар өмнө
rpc-test fedd138f3a unique bind for rpc test (#7419) 3 сар өмнө
runtime 6001c5d60e v3.0: runtime: Avoid locking during stake vote rewards calculation (backport of #7742) (#8012) 1 сар өмнө
runtime-transaction 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
scripts 911df2c36c Pin spl-token-cli version to v5.4.0 (#8813) 3 долоо хоног өмнө
sdk d221ad4091 sdk: Remove everything from the repo (#4867) 9 сар өмнө
send-transaction-service 8929a44931 send-tx-service: remove deprecated re-export (#7632) 3 сар өмнө
stake-accounts 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
storage-bigtable d429f6efcd ledger: Resolve Rust 1.88 clippy lints and format strings (#6964) 4 сар өмнө
storage-proto 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
streamer 94f1f503ff Multihoming: Switch gossip socket to `Arc<[UdpSocket]>` and bind both at startup (#7535) 3 сар өмнө
svm 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
svm-callback 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
svm-feature-set 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
svm-log-collector 173d1361de svm repo split: rename log collector (#7430) 3 сар өмнө
svm-measure 5cad0f1c39 svm repo split: fork measure (#7441) 3 сар өмнө
svm-rent-calculator 6fbbaf6783 svm: Remove SVMRentCollector, use Rent directly (#6782) 3 сар өмнө
svm-timings 87a97a3266 svm repo split: rename timings (#7432) 3 сар өмнө
svm-transaction 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
svm-type-overrides ed847b333d chore: apply doc-comment to the module in svm-type-overrides/src/lib.rs (#7481) 3 сар өмнө
syscalls 01781bb975 v3.0: Fix - Restrict address space of sysvar syscalls in SIMD-0219 (backport of #7832) (#7959) 2 сар өмнө
system-test 8578325ac5 Remove solana-log-analyzer crate (#7506) 3 сар өмнө
test-validator 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
thread-manager 222d32e7ea thread-manager: Resolve Rust 1.88 clippy lints and format strings (#7088) 4 сар өмнө
tls-utils 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
tokens 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
tps-client 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
tpu-client 7df94c3a2b tpu-client: remove pointless binds (#7418) 3 сар өмнө
tpu-client-next c77b827a56 v3.0: tpu-client-next: consolidate worker error logging (backport of #8603) (#8605) 4 долоо хоног өмнө
transaction-context 2e45d33cf2 Refactor - Split `InstructionContext` (#7574) 3 сар өмнө
transaction-dos c68c510c78 Add local-cluster and dependents to dcou tainted list (#7132) 3 сар өмнө
transaction-metrics-tracker 2a2f6b976d chore: typo fixes (#7303) 3 сар өмнө
transaction-status c859d8bc35 SPL: Use token interface crate (#7311) 3 сар өмнө
transaction-status-client-types 57843a0478 v3.0: transaction-status-client-types: Fix deserializer for SDKv2 (backport of #8625) (#8759) 3 долоо хоног өмнө
transaction-view 103fb21d00 ci: use cargo sort v2 (#6406) 5 сар өмнө
turbine b22eda24d1 v3.0: XDP: add bond interface support for zero copy (backport of #9004) (#9052) 4 өдөр өмнө
udp-client 9756887d86 v3.0: Fix UDP client binding to localhost breaking vote propagation (backport of #8353) (#8364) 1 сар өмнө
unified-scheduler-logic b66c365ac5 chore: typo fixes (#7254) 3 сар өмнө
unified-scheduler-pool 87a97a3266 svm repo split: rename timings (#7432) 3 сар өмнө
validator b6c96e84b1 v3.0: validator: Make wait for exit the default exit behavior (backport of #7609) (#7662) 3 сар өмнө
verified-packet-receiver 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 сар өмнө
version 92bed3f448 v3.0: Expose the ClientId publicly from the gossip Version message (backport of #8303) (#8318) 1 сар өмнө
vortexor c68c510c78 Add local-cluster and dependents to dcou tainted list (#7132) 3 сар өмнө
vote 672cf68bc8 feat: support vote state v4 in VoteStateView (#7548) 3 сар өмнө
votor b0ffc10a7f replay: refactor set-root to enable alpenglow to take over (#7452) 3 сар өмнө
watchtower 44924ba782 Reapply "deps: Bump all sdk and spl crates to v3 compatibility (#7492… (#7592) 3 сар өмнө
web3.js 18c22c7cef Add link to new web3.js repo (#30096) 2 жил өмнө
wen-restart 87a97a3266 svm repo split: rename timings (#7432) 3 сар өмнө
xdp b22eda24d1 v3.0: XDP: add bond interface support for zero copy (backport of #9004) (#9052) 4 өдөр өмнө
xdp-ebpf 96c3a8519a v3.0: agave-xdp-ebpf: fix package includes (backport of #8854) (#8867) 2 долоо хоног өмнө
zk-keygen ad7fbe953d [zk-token-sdk] deprecate the crate (#6969) 3 сар өмнө
zk-sdk a2ce908cfa [zk-sdk] Remove zk-sdk from the repo (#7126) 3 сар өмнө
zk-token-sdk ad7fbe953d [zk-token-sdk] deprecate the crate (#6969) 3 сар өмнө
.codecov.yml 0b9c040fcf Add .codecov.yml with checks disabled (#30666) 2 жил өмнө
.gitignore f75263b29d Script: `fetch-core-bpf.sh` (#4844) 8 сар өмнө
.mergify.yml bb48baebc1 [mergify] add notification for ZK directory changes (#6913) 4 сар өмнө
CHANGELOG.md b22eda24d1 v3.0: XDP: add bond interface support for zero copy (backport of #9004) (#9052) 4 өдөр өмнө
CONTRIBUTING.md 305c98e869 Update contributing with more guidelines. (#5008) 7 сар өмнө
Cargo.lock 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
Cargo.toml 7a8ff76856 Bump version to v3.0.11 (#8882) 2 долоо хоног өмнө
LICENSE c65605802a Correct LICENSE to conform with https://apache.org/licenses/LICENSE-2.0 (#31860) 2 жил өмнө
README.md da75eae6ec docs: Update URL's from solanalabs.com to anza.xyz (#7505) 3 сар өмнө
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 92687e91ed BPF Loader: Hoist syscalls into their own crate (#5559) 3 сар өмнө
cargo-test-sbf f9f73a952a sdk: Move out things that won't be in the sdk (#4624) 9 сар өмнө
clippy.toml c3509de5be Replace lazy_static dependency (#6057) 6 сар өмнө
fetch-core-bpf.sh ef4f90f9e1 Run 'fetch-core-bpf.sh' from any directory (#5518) 8 сар өмнө
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) 5 жил өмнө
fetch-programs.sh f75263b29d Script: `fetch-core-bpf.sh` (#4844) 8 сар өмнө
fetch-spl.sh 597947830a spl: Update to newest token-2022 binary on mainnet (#5628) 7 сар өмнө
rust-toolchain.toml b3fca5dd51 Downgrade Rust to 1.86.0 (#6980) 4 сар өмнө
rustfmt.toml 70ebab2c82 Add rustfmt.toml and `cargo fmt` (#23238) 3 жил өмнө
vercel.json 1c36af158f removing the "autoJobCancelation": false 4 жил өмнө

README.md

Anza

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 libclang-dev

On Fedora:

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

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!