This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Rent should only be collected per block (not per transaction) #10088
Closed
Description
Problem
Rent is a protocol thing that happens to accounts outside of transactions but currently is closely tied to account creation transactions. This is an issue for a few reasons:
- Accounts could be charged rent more than once per block (if created / destroyed / created again)
- Rent affects the
postBalance
field in stored transaction status metadata and this effect is not currently transparent to clients (see: https://github.com/solana-labs/explorer/issues/118) - Tying rent collection to transactions is inconsistent with how eager rent collection works (per block)
Proposed Solution
Instead of collecting rent during each transaction which creates accounts, wait to collect rent from newly created accounts until the end of a block.