solana-with-rpc-optimizations/sdk
HaoranYi 60fdd85aed
Add a feature to disable rent collection (#33945)
* add a feature to disable rent collection

* fix a test

* fix a test

* rekey

* should collect rent

* Update runtime/src/bank/fee_distribution.rs

Co-authored-by: Brooks <brooks@prumo.org>

* expand tests to cover both rent collection disabled and enabled

* feedbacks

* reviews - move should collect rent check out of rent collector into bank

* enforce rent_epoch to u64:max when rent collection is disabled

* review feedbacks and fix a test
When rent fee collection is disabled, we won't collect rent for any account. If there are any rent paying accounts, their `rent_epoch` won't change too.

* revise comments

* update rent_epoch for rent exempted account

* rebase

* set rent_epoch in rent collection for rent exempted account

* revert test change

* don't assert

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
Co-authored-by: Brooks <brooks@prumo.org>
2023-11-16 08:57:49 -06:00
..
benches Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
bpf Bump platform-tools to v1.39 (#33804) 2023-10-21 16:22:16 -04:00
cargo-build-bpf clippy: Replaces .get(0) with .first() (#34048) 2023-11-13 17:22:17 -05:00
cargo-build-sbf test: check the existence of target_path_parent before detelting (#33812) 2023-10-23 14:14:34 +00:00
cargo-test-bpf clippy: Replaces .get(0) with .first() (#34048) 2023-11-13 17:22:17 -05:00
cargo-test-sbf Fix - Upcoming `arithmetic_side_effects` lints (#33000) 2023-08-29 20:58:53 +02:00
docker-solana repurposes tvu_forwards socket for TVU over QUIC (#32737) 2023-08-07 22:02:41 +00:00
gen-headers Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
macro stake: deprecate on chain warmup/cooldown rate and config (#32723) 2023-08-07 13:23:24 -07:00
program chore: Update light-poseidon to 0.2.0 (#33923) 2023-11-10 16:00:10 +09:00
sbf Bump platform-tools to v1.39 (#33804) 2023-10-21 16:22:16 -04:00
src Add a feature to disable rent collection (#33945) 2023-11-16 08:57:49 -06:00
tests
.gitignore
Cargo.toml sdk: put AccountSharedData::set_data() behind feature="dev-context-only-utils" (#33086) 2023-09-01 21:02:14 +07:00
README.md Update discord invite links (#30909) 2023-03-29 09:14:22 -07:00
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 Stack Exchange