Ei kuvausta

Kristofer Peterson ebe554559c solana-stake-accounts: support configurable commitment level and no wait (#6644) 4 kuukautta sitten
.buildkite b3a89dbe25 ci: remove unused pipelines (#6528) 5 kuukautta sitten
.cargo be73302abd force x86_64-v2 cpu for linux builds (fixup for #5674) (#5891) 7 kuukautta sitten
.config f1d74cac64 Removes cluster-type from snapshot integration tests (#6716) 5 kuukautta sitten
.github eff72e2133 Fix musl build, add it to CI (#5271) 5 kuukautta sitten
account-decoder 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
account-decoder-client-types 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
accounts-bench 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
accounts-cluster-bench 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
accounts-db 6a77548fd4 Add length of obsolete account vector to storage hash (#6673) 5 kuukautta sitten
banking-bench 07f08b0298 PoH: track_transaction_indexes static after startup (#6701) 5 kuukautta sitten
banking-stage-ingress-types 6b6a03ba8b Apply cleanups to solana-core for unified scheduler (#4123) 10 kuukautta sitten
banks-client bfebc57dcf Add missing features to banks-client crate deps (#6445) 5 kuukautta sitten
banks-interface 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
banks-server 520f85a56c send-transaction-service: use message hash and blockhash to look up committed tx status (#6585) 5 kuukautta sitten
bench-streamer 0cdebbcff8 net-utils: Deprecate explicit reuseport (#6639) 5 kuukautta sitten
bench-tps 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
bench-vote 0cdebbcff8 net-utils: Deprecate explicit reuseport (#6639) 5 kuukautta sitten
bloom 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
bucket_map 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
builtins 246300b2b6 slashing: enshrine the slashing program (#4942) 7 kuukautta sitten
builtins-default-costs 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
cargo-registry 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
cd e48456dbbc Create continuous delivery directory and add readme with canary details. (#27683) 3 vuotta sitten
ci 19d0027463 Untar snapshot using io_uring readahead reader and unpacking on worker threads (#6535) 5 kuukautta sitten
clap-utils ffc8065f25 cli: Snapshot interval must be greater than zero (#6596) 5 kuukautta sitten
clap-v3-utils 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
cli 372535d466 remove solana-decode-error (#6538) 5 kuukautta sitten
cli-config 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
cli-output 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
client 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
client-test 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
compute-budget 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
compute-budget-instruction 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
connection-cache 0cdebbcff8 net-utils: Deprecate explicit reuseport (#6639) 5 kuukautta sitten
core 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
cost-model 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
curves 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
docker-solana e19a786c83 docs: fix docker link (#6180) 6 kuukautta sitten
docs 5e53ebc2e0 Changelog: add mention of memlock requirement for io_uring (#6702) 5 kuukautta sitten
dos 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
download-utils ce73ca8f9a Removes deprecated snapshot archive formats (#6541) 5 kuukautta sitten
entry 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
faucet fc4104fc62 build(deps): bump solana-transaction from 2.2.2 to 2.2.3 (#6464) 5 kuukautta sitten
feature-set e36fdb83eb clean up `disable_rent_fees_collection` feature (#6622) 5 kuukautta sitten
fee cb32984a9b Migrate from solana-feature-set to agave-feature-set (#5520) 7 kuukautta sitten
genesis c1ff0e5f1f build(deps): bump solana-genesis-config from 2.2.1 to 2.3.0 (#6503) 5 kuukautta sitten
genesis-utils 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
geyser-plugin-interface 6b566ba9cd geyser: update to `ReplicaTransactionInfoV3` (#6515) 5 kuukautta sitten
geyser-plugin-manager 6b566ba9cd geyser: update to `ReplicaTransactionInfoV3` (#6515) 5 kuukautta sitten
gossip 4e285b8a7e Multihoming: add multiple bind addresses. (#6522) 4 kuukautta sitten
install 64a3969a99 chore: Typo fixes (#6599) 5 kuukautta sitten
io-uring 1ecf04237f accounts-db: use io_uring when available to remove large directories (#262) 5 kuukautta sitten
keygen 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
lattice-hash 51a114eeca add missing description for solana-lattice-hash (#3358) 1 vuosi sitten
ledger dd8c84237a ledger, tests: remove remaining parts of legacy shreds in shred tests (#6713) 4 kuukautta sitten
ledger-tool af532bbac8 clean up `skip_rent_rewrites` feature (#6655) 5 kuukautta sitten
local-cluster 9c851237b7 Uses an enum for the snapshot interval (#6612) 5 kuukautta sitten
log-analyzer 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
log-collector 103fb21d00 ci: use cargo sort v2 (#6406) 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-tree 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
metrics 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
multinode-demo e218d961a1 deprecate `--gossip-host` in favor of `--bind-address` (#6519) 5 kuukautta sitten
net 5e53ebc2e0 Changelog: add mention of memlock requirement for io_uring (#6702) 5 kuukautta sitten
net-shaper 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
net-utils 2a59720488 deprecate `get_public_ip_addr` in favor of `get_public_ip_addr_with_binding` (#6707) 5 kuukautta sitten
notifier 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
perf 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
platform-tools-sdk 0e97629536 Run rustfmt on all files (#6688) 5 kuukautta sitten
poh 07f08b0298 PoH: track_transaction_indexes static after startup (#6701) 5 kuukautta sitten
poh-bench 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
poseidon 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
precompiles dc824a2a66 bump solana-secp256k1-program from 2.2.1 to 2.2.3 (#6507) 5 kuukautta sitten
program-runtime 3b89962e8c `ProgramCacheForTxBatch::find`: only find in `entries` if not found in `modified_entries` (#6562) 5 kuukautta sitten
program-test 7b3de47993 build(deps): bump solana-program-error from 2.2.1 to 2.2.2 (#6408) 5 kuukautta sitten
programs 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
pubsub-client df949690d9 Boxes PubsubClientError's ConnectionError and WsError (#6610) 5 kuukautta sitten
quic-client 0cdebbcff8 net-utils: Deprecate explicit reuseport (#6639) 5 kuukautta sitten
rayon-threadlimit 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
rbpf-cli 3f9a7a52ea [anza migration] rename crates (#10) 1 vuosi sitten
remote-wallet 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
reserved-account-keys 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
rpc e36fdb83eb clean up `disable_rent_fees_collection` feature (#6622) 5 kuukautta sitten
rpc-client 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
rpc-client-api ec3872b1f1 Boxes rpc client_error::Error's ErrorKind field (#6293) 5 kuukautta sitten
rpc-client-nonce-utils 234afe489a chore: Fix several crate documentation links (#6601) 5 kuukautta sitten
rpc-client-types 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
rpc-test 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
runtime a2fc295d27 Removes RentPayingAccountsByPartition (#6715) 5 kuukautta sitten
runtime-transaction 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
scripts 0214bd539a fix logic in version bump script (#6691) 4 kuukautta sitten
sdk d221ad4091 sdk: Remove everything from the repo (#4867) 9 kuukautta sitten
send-transaction-service 520f85a56c send-transaction-service: use message hash and blockhash to look up committed tx status (#6585) 5 kuukautta sitten
stake-accounts ebe554559c solana-stake-accounts: support configurable commitment level and no wait (#6644) 4 kuukautta sitten
storage-bigtable b98bdce690 chore: typo fixes (#6594) 5 kuukautta sitten
storage-proto d849be8cb2 Airgap`TransactionError` type from blockstore (#6434) 5 kuukautta sitten
streamer b0a649c866 Chore: streamer: remove deprecated declarations (#6684) 5 kuukautta sitten
svm 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
svm-callback de02c09bc9 Bump version to v3.0.0 (#6425) 5 kuukautta sitten
svm-conformance 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
svm-feature-set e36fdb83eb clean up `disable_rent_fees_collection` feature (#6622) 5 kuukautta sitten
svm-rent-collector e36fdb83eb clean up `disable_rent_fees_collection` feature (#6622) 5 kuukautta sitten
svm-transaction 19c78ed41f SIMD-0242: Static Nonce Account Only (#5555) 7 kuukautta sitten
system-test 3f9a7a52ea [anza migration] rename crates (#10) 1 vuosi sitten
test-validator 9c851237b7 Uses an enum for the snapshot interval (#6612) 5 kuukautta sitten
thin-client 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
thread-manager 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
timings 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
tls-utils 29a06f5c84 fix imports in tls-utils to avoid cargo doc error (#5861) 7 kuukautta sitten
tokens 656955bbdf second tranche of solana-sdk omnicrate dependency removals (#6169) 6 kuukautta sitten
tps-client 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
tpu-client 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
tpu-client-next 354071ec05 streamer: Remove unnecessary TestServerConfig struct (#6649) 5 kuukautta sitten
transaction-context bd8ccc6a22 Remove debug-signature feature from transaction-context (#6647) 5 kuukautta sitten
transaction-dos 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
transaction-metrics-tracker 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
transaction-status 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
transaction-status-client-types 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
transaction-view 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
turbine 021237abab Reduce CLUSTER_NODES_CACHE_NUM_EPOCH_CAP to something reasonable (#6696) 5 kuukautta sitten
type-overrides 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
udp-client 0cdebbcff8 net-utils: Deprecate explicit reuseport (#6639) 5 kuukautta sitten
unified-scheduler-logic 528908ab38 Discard buffer of inactive BP unified scheduler (#6246) 5 kuukautta sitten
unified-scheduler-pool 07f08b0298 PoH: track_transaction_indexes static after startup (#6701) 5 kuukautta sitten
upload-perf 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
validator 4e285b8a7e Multihoming: add multiple bind addresses. (#6522) 4 kuukautta sitten
verified-packet-receiver 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
version 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
vortexor 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
vote 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
watchtower 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
web3.js 18c22c7cef Add link to new web3.js repo (#30096) 2 vuotta sitten
wen-restart e61024026d Clean up bank epoch stakes migration (#6509) 5 kuukautta sitten
xdp eff72e2133 Fix musl build, add it to CI (#5271) 5 kuukautta sitten
zk-keygen 103fb21d00 ci: use cargo sort v2 (#6406) 5 kuukautta sitten
zk-sdk fd8bc3ae93 Revert "[zk-sdk] Add `c_max_proof` to the sigma proof transcript and … (#6544) 5 kuukautta sitten
zk-token-sdk 64a3969a99 chore: Typo fixes (#6599) 5 kuukautta sitten
.codecov.yml 0b9c040fcf Add .codecov.yml with checks disabled (#30666) 2 vuotta sitten
.gitignore f75263b29d Script: `fetch-core-bpf.sh` (#4844) 8 kuukautta sitten
.mergify.yml c60557c099 Updates backport labels (#6430) 5 kuukautta sitten
CHANGELOG.md 5e53ebc2e0 Changelog: add mention of memlock requirement for io_uring (#6702) 5 kuukautta sitten
CONTRIBUTING.md 305c98e869 Update contributing with more guidelines. (#5008) 7 kuukautta sitten
Cargo.lock ebe554559c solana-stake-accounts: support configurable commitment level and no wait (#6644) 4 kuukautta sitten
Cargo.toml 18238bdfcb Restore vortexor receiver -- renamed to agave-verified-packet-receiver (#6542) 5 kuukautta sitten
LICENSE c65605802a Correct LICENSE to conform with https://apache.org/licenses/LICENSE-2.0 (#31860) 2 vuotta sitten
README.md c22b2b5fe4 readme: Update agave logo (#6597) 5 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
clippy.toml c3509de5be Replace lazy_static dependency (#6057) 6 kuukautta sitten
fetch-core-bpf.sh ef4f90f9e1 Run 'fetch-core-bpf.sh' from any directory (#5518) 8 kuukautta sitten
fetch-perf-libs.sh 9393dce1ff Take v0.19.3 of perf libs which improves sigverify perf 2x (#11894) 5 vuotta sitten
fetch-programs.sh f75263b29d Script: `fetch-core-bpf.sh` (#4844) 8 kuukautta sitten
fetch-spl.sh 597947830a spl: Update to newest token-2022 binary on mainnet (#5628) 7 kuukautta sitten
run.sh fc2a8794be [docs] updated readme and fix links (#34565) 1 vuosi sitten
rust-toolchain.toml 8e5470a9c4 bump stable rust to 1.86.0 (#5939) 7 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

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!