solana/sdk
behzad nouri f937fcbd95 updates rewards at epoch boundary using cached accounts
Loading vote and stake accounts from accounts-db takes a significant
portion of time updating rewards at epoch boundary.

This commit bypasses accounts-db and instead uses vote and stake
accounts cached in bank stakes:
https://github.com/solana-labs/solana/blob/d2702201c/runtime/src/stakes.rs#L148-L152

These cached accounts are synchronized with accounts-db after each
transaction, and so there should not be any change in the resulting
computation:
https://github.com/solana-labs/solana/blob/d2702201c/runtime/src/bank.rs#L4526

Nevertheless, to avoid any chances of introducing a consensus issue, the
switch to cached account is feature gated.
2022-04-21 15:28:41 +00:00
..
benches
bpf Update llvm include path in C toolchain makefile 2022-04-19 21:38:36 -07:00
cargo-build-bpf sdk: Add --jobs parameter in build/test bpf (#24359) 2022-04-15 13:49:43 +02:00
cargo-test-bpf sdk: Add --jobs parameter in build/test bpf (#24359) 2022-04-15 13:49:43 +02:00
docker-solana
macro Add Ident case (#24390) 2022-04-15 16:27:25 -06:00
program Only add hashes for completed blocks to recent blockhashes (#24389) 2022-04-21 21:05:29 +08:00
src updates rewards at epoch boundary using cached accounts 2022-04-21 15:28:41 +00:00
tests
.gitignore
Cargo.toml chore: bump js-sys from 0.3.55 to 0.3.57 (#24485) 2022-04-20 11:54:44 -06:00
README.md
build.rs
package.json

README.md

Solana

Solana SDK

Use the Solana SDK Crate to write client side applications in Rust. If writing on-chain programs, use the Solana Program Crate instead.

More information about Solana is available in the Solana documentation.

The Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Discord