Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces. https://www.anza.xyz/
  • Rust 97.6%
  • Shell 1.5%
  • C 0.6%
Find a file
cmoyes-jump 5943c42875
gossip: add conformance tests checking cross-client protocol correctness (#11856)
gossip: add conformance tests for cross-client protocol correctness
2026-04-30 19:46:42 +00:00
.buildkite
.cargo
.config
.github
account-decoder
account-decoder-client-types
accounts-cluster-bench
accounts-db
banking-stage-ingress-types
banks-client
banks-interface
banks-server
bench-streamer
bench-tps
bloom
bls-cert-verify
bls12-381-syscall
bucket_map
builtins
builtins-default-costs
ci
clap-utils
clap-v3-utils
cli
cli-config
cli-output
client
client-test
compute-budget
compute-budget-instruction
connection-cache
core
cost-model
dev-bins
docs
download-utils
entry
faucet
faucet-cli
feature-set
fee
fs
genesis
genesis-utils
geyser-plugin-interface
geyser-plugin-manager
gossip
gossip-cli
install
io-uring
keygen
lattice-hash
leader-schedule
ledger
ledger-tool
local-cluster
logger
math-utils
measure
merkle-tree
metrics
multinode-demo
net
net-utils
notifier
perf
poh
poh-bench
precompiles
program-binaries
program-runtime
program-test
programs
pubsub-client
quic-client
random
rayon-threadlimit
rbpf-cli
remote-wallet
reserved-account-keys
rpc
rpc-client
rpc-client-api
rpc-client-nonce-utils
rpc-client-types
rpc-test
runtime
runtime-transaction
scheduler-bindings
scheduling-utils
scripts
sdk
send-transaction-service
snapshots
stake-accounts
storage-bigtable
storage-proto
streamer
svm
svm-callback
svm-feature-set
svm-log-collector
svm-measure
svm-test-harness
svm-timings
svm-transaction
svm-type-overrides
syscalls
test-validator
tls-utils
tokens
tps-client
tpu-client
tpu-client-next
transaction-context
transaction-status
transaction-status-client-types
transaction-view
turbine
udp-client
unified-scheduler-logic
unified-scheduler-pool
validator
version
vote
votor
votor-messages
watchtower
web3.js
xdp
xdp-ebpf
zk-token-sdk
.codecov.yml
.gitignore
.mergify.yml
cargo
cargo-build-sbf
cargo-test-sbf
Cargo.lock
Cargo.toml
CHANGELOG.md
clippy.toml
CONTRIBUTING.md
fetch-core-bpf.sh
fetch-perf-libs.sh
fetch-programs.sh
fetch-spl.sh
LICENSE
README.md
RELEASE.md
rust-toolchain.toml
rustfmt.toml
SECURITY.md
vercel.json

Anza

Agave validator Agave documentation Build status Release status codecov

Building

1. Install rustc, cargo and rustfmt.

$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt

The rust-toolchain.toml file pins a specific rust version and ensures that cargo commands run with that version. Note that cargo will automatically install the correct version if it is not already installed.

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 nextest run --profile ci  --cargo-profile ci --config-file .config/nextest.toml

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!