f937fcbd95
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. |
||
---|---|---|
.. | ||
benches | ||
bpf | ||
cargo-build-bpf | ||
cargo-test-bpf | ||
docker-solana | ||
macro | ||
program | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
README.md | ||
build.rs | ||
package.json |
README.md
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