Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sub-rent-exempt-minimum transfers to 1nc1nerator #23382

Merged

Conversation

CriesofCarrots
Copy link
Contributor

Problem

require_rent_exempt_accounts prevents most small transfers (< 0.00089088 SOL) to incinerator. This is because the incinerator is emptied every block, and so the first transfer is seen as creating a new account.

Summary of Changes

Special case 1nc1nerator11111111111111111111111111111111 to allow all transfers, regardless of size or rent-exempt status

jstarry
jstarry previously approved these changes Mar 1, 2022
runtime/src/account_rent_state.rs Outdated Show resolved Hide resolved
@mergify mergify bot dismissed jstarry’s stale review March 1, 2022 00:54

Pull request has been modified.

@CriesofCarrots CriesofCarrots merged commit 19448ba into solana-labs:master Mar 1, 2022
mergify bot pushed a commit that referenced this pull request Mar 1, 2022
* Add failing test

* Allow small burns to incinerator

* Use check_id method

(cherry picked from commit 19448ba)

# Conflicts:
#	runtime/src/account_rent_state.rs
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Mar 1, 2022
…#23382)

* Add failing test

* Allow small burns to incinerator

* Use check_id method
mergify bot added a commit that referenced this pull request Mar 1, 2022
…3382) (#23404)

* Allow sub-rent-exempt-minimum transfers to `1nc1nerator` (#23382)

* Add failing test

* Allow small burns to incinerator

* Use check_id method

(cherry picked from commit 19448ba)

# Conflicts:
#	runtime/src/account_rent_state.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <[email protected]>
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Mar 4, 2022
…#23382)

* Add failing test

* Allow small burns to incinerator

* Use check_id method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants